Displaying 1 result from an estimated 1 matches for "membertocategory".
Did you mean:
member_category
2006 May 12
2
Has many through join table issues
...mbers, only
subcategories.
ie. Finance is top level (no member associated). Accountants, financial
advisors, investors will be subcategories (with lots of members).
I''m using a join table between members and categories to build the
associations between members and the category.
class MemberToCategory < ActiveRecord::Base
belongs_to :members
belongs_to :categories
end
class MemberType < ActiveRecord::Base
has_many :member_to_categories
has_many :members, :through => :member_to_categories
class Member < ActiveRecord::Base
has_many :member_to_categories
has_many :member_t...