search for: prospectlist

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

Did you mean: prospect_list
2006 Jan 19
0
Help with nested HABTM relationship
...with ActiveRecord that I want to put into a Rails application later. For now I just wrote it within a plain old Ruby script for easier testing. I am working with an existing database so I had to map some foreign keys myself. As you can see from the models below, the database has a structure of Prospectlists <=habtm=> Contacts <=habtm=> Accounts I want to produce a list of all contacts belonging on a certain prospect list with their account name. If 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...