Tom Mac wrote: > Hi >> Consider this example: >> >>> organizations has_many employees >>> employee belongs_to organization >> employee belongs_to adminstered_organization > > Could you please specify the model structure and relation now?
maybe the requirement needs to be expanded a touch as it was a little unclear to me on what this 'administrator' does. Are you modelling a business role or a system role (and/or are they the same thing?). Are there other roles you may need to model as this would potentially change the way you implement the behaviour i.e. the introduction of a roles model. PS I found that a good guide to associations which helped me was http://guides.rubyonrails.org/association_basics.html -- 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 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.

