Give us more code, because this can be done in a single step. Chaining method calls like that will return a single department object (e.department). So it should be no different, and I have done similar things in the past without trouble.
The only time this shouldn't work is if you try something like e.departments.customers. This is because the plural "departments" means you will return multiple departments. That collection will not have a single ".customers" method. -- 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.

