search for: company_topics

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

2006 Apr 04
1
habtm and options_from_collection_for_select [1.0.0]
...ems/activerecord-1.13.2/lib/ active_record/associations.rb:770:in `topics='' My models: class Company < ActiveRecord::Base has_and_belongs_to_many :topics end class Topic < ActiveRecord::Base has_and_belongs_to_many :companies end And the form elements: <select id="company_topics" name="company[topics][]" multiple="multiple"> <%= options_from_collection_for_select(Topic.find_all, "id", "name") %> </select> I tested using the connsole, and things work as expected. Any help greatly appreciated ! Paul