Re: [Rails] additional model attributes

2011-10-25 Thread Frederick Cheung
On 25 Oct 2011, at 14:03, "Lukas M." wrote: > Hi, > i have a "place" model with 2 columns (id, name). > I'm calling an external api which gives me data to create a new place > object. > > I would like to add the address from the external place to the place > object and render it as a json resu

[Rails] additional model attributes

2011-10-25 Thread Lukas M.
Hi, i have a "place" model with 2 columns (id, name). I'm calling an external api which gives me data to create a new place object. I would like to add the address from the external place to the place object and render it as a json result, without storing it in the database. i don't get any error