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
hi,
that works but not in the case when i would like to do something like
this:
user_place = Location.new(:place = place, :user = user)
user_place.to_json //address is missing
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
hm.. no luck with that either. when i try to print out the places object
in the console (logger.debug @place.to_yaml), address is missing.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To
3 matches
Mail list logo