search for: fkcontactstateid

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

2006 Apr 01
3
has_and_belongs_to_many construction
...o i know for example when i called a specific presentation. Now i want to get all the presentations that are in state emailed. I now got in my contactstate model has_and_belongs_to_many :presentation, :join_table => ''presentationcontactstates'', :foreign_key => ''fkcontactstateID'', :association_foreign_key => ''fkpresentationID'' So with Contactstate.find(:all, conditions => ''contactstate IN (1,3,6)'').presentations i''ve got them. But now i want to filter those results with for example city = ''New York'...