Displaying 1 result from an estimated 1 matches for "group_colletion".
Did you mean:
group_collection
2006 Mar 29
3
Self-referential many-many joins with :through
...**
class Topic < ActiveRecord::Base
has_many :item_collection, :class_name => "Grouping", :foreign_key
=> "item_id"
has_many :group_collection, :class_name => "Grouping",
:foreign_key => "group_id"
has_many :groups, :through => :group_colletion
has_many :items, :through => :item_collection
end
**********************************************************************************
***********************************************************************************
class Grouping < ActiveRecord::Base
belongs_to :item,...