On Aug 22, 6:22 pm, Glen <[email protected]> wrote: > I'm having trouble with a model: > def new > @job = Job.new > > @job.city.build > @job.region.build > @job.counrty.build > @job.department.build > @job.company.build
The magically created methods are @job.build_city etc. Fred > end > > It would appear that I am wrong in my assumption that the relation in > the model allows me to treat city as an attribute. How would I go > about making this work? --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

