Displaying 1 result from an estimated 1 matches for "person_tasks".
2006 Aug 09
0
select-multiple for has_many association
...9;'s see. There''s a handy helper method that results in code like this, 
when used straightforwardly
  <%= collection_select :person, :tasks,
       Task.find(:all), :id, :description, {}, 
       :multiple => true %>
Here''s the resulting HTML
  <select id="person_tasks" multiple="multiple"
   name="person[tasks]">
    <option value="1">Do something</option>
    ...
  </select>
Unfortunately, none of the options gets selected. When the form is 
submitted, the resulting params are
  "person" =>...