Displaying 1 result from an estimated 1 matches for "prospect_list".
2006 Jan 19
0
Help with nested HABTM relationship
...I have find one specific contact (ll.28-32), the company name prints.
But if I do the exact same for a number of contacts already selected
from the mailing list (ll.36-41), no company names are printed. No error
is produced.
What am I doing wrong?
1 # set up the structures
2 class Prospect_list < ActiveRecord::Base
3 has_and_belongs_to_many :contacts,
4 :join_table => "prospect_lists_prospects",
5 :foreign_key => "prospect_list_id",
6 :association_foreign_key => "related_id"
7 end
8
9 class Ac...