Users have many stories through userstorylinks... has_many :userstorylinks has_many :stories, :through=>:userstorylinks
Stories are even more associated... has_many :userstorylinks, :dependent=>:destroy has_many :users, :through=>:userstorylinks has_many :storyitemlinks has_many :items, :through=>:storyitemlinks has_many :storycontactlinks has_many :contacts, :through=>:storycontactlinks has_many :storycompanylinks has_many :companies, :through=>:storycompanylinks Does this screw up your suggestion? On Oct 19, 10:58 am, Sijo k g <rails-mailing-l...@andreas-s.net> wrote: > Hi > > Have you anywhere specified the HABTM relation?It not supported I > think. Please check your relations like > > user.rb > user has_many stories > user has_many items through stories > > story.rb > belongs_to user > has_many items > > item.rb > belongs_to story > > Sijo > -- > 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 -~----------~----~----~----~------~----~------~--~---