On Apr 7, 4:57 pm, John Catalyne <li...@ruby-forum.com> wrote:
> But, how would having it as a virtual attribute help? It would not be
> saved to the database, so it's value would be lost.

because you'd define city_id= to be basically the same as the
city_attributes method you have above. It's not very different to what
you have but allows you to get rid of the accepts_nested_attributes
and the fields_for

Fred
>
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to