Displaying 1 result from an estimated 1 matches for "members_are_disc_jockey".
Did you mean:
members_are_disc_jockeys
2006 Feb 01
0
habtm and counter (xxx_count field in DB)
Hi all
I have the following models:
class Member < ActiveRecord::Base
# DJ Profiles the member is part of
has_and_belongs_to_many :disc_jockeys,
:join_table => ''members_are_disc_jockeys'',
:uniq => true
end
class DiscJockey < ActiveRecord::Base
# Members that are part of this DJ profile
has_and_belongs_to_many :members,
:join_table => ''members_are_disc_jockeys'',
:...