search for: group_collection

Displaying 1 result from an estimated 1 matches for "group_collection".

2006 Mar 29
3
Self-referential many-many joins with :through
...d them only went through 5 days ago.. Cheers -henster *********************************************************************************** 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 ********************************************************************************** **********************...