search for: johnsonibm

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

Did you mean: johnsoni
2006 Jan 19
0
Help with nested HABTM relationship
...=> "contact_id", 25 :association_foreign_key => "account_id" 26 end 27 28 me = Contact.find_by_first_name("Siros") 29 print me.last_name 30 me.accounts.each do |company| 31 puts company.name 32 end 33 # => "JohnsonIBM" 34 35 36 mailing = Prospect_list.find_by_name("Hot Leads") 37 mailing.contacts.each do |person| 38 puts person.first_name + '' '' + person.last_name 39 # line below prints nothing 40 person.accounts.first {|company| puts company.n...