I have a User model defined as following : has_many :memberships, :class_name => 'Member', :include => [ :group ] has_many :members, :dependent => :delete_all has_many :groups, :through => :memberships
and a Group model has_many :members, :include => :user has_many :users, :through => :members finally the Member model belongs_to :user belongs_to :hub given a group @group , a user @user,and a member @member how do create the association ? thanks for your help erwin -- 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 -~----------~----~----~----~------~----~------~--~---

