search for: accounts_contacts

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

2006 Jan 19
0
Help with nested HABTM relationship
...spect_lists_prospects", 5 :foreign_key => "prospect_list_id", 6 :association_foreign_key => "related_id" 7 end 8 9 class Account < ActiveRecord::Base 10 has_and_belongs_to_many :contacts, 11 :join_table => "accounts_contacts", 12 :foreign_key => "account_id", 13 :association_foreign_key => "contact_id" 14 end 15 16 17 class Contact < ActiveRecord::Base 18 has_and_belongs_to_many :prospect_lists, 19 :join_table => "prospect_lists_pro...