This project is archived and is in readonly mode.
select_tag ignores :multiple option
-
andrehjr (at gmail)
I think you're missing a {} in the f.select.. select and select_tag are both working properly on rails@master
<%= form_for :neighborhood do |f| %> <%= f.select :species_ids, [['Human', 'Hs'], ['Mouse', 'Mm'], ['Yeast', 'Sc']], {}, :multiple => true %> <%= select_tag :species, options_for_select([['Human', 'Hs'], ['Mouse', 'Mm'], ['Yeast', 'Sc']]), :multiple => true %> <% end %> -
Rohit Arondekar
- Importance changed from to Low
John, did that solve your problem? I believe it should. Do comment back here if it did so that I can close the ticket.
-
Rohit Arondekar
- State changed from new to invalid