I realize that doing a select with multiple must work, yet despite so
many attempts following dozens of examples I have yet to get any
success. I have the following (example) code:
<%= select_tag ‘test[]’, options_for_select([“one”, “two”, “three”],
[“one”]), { :multiple => true, :size =>5, :id => “test” } %>
Note I have the brackets after test - so Rails knows its an array.
When I select one and two in the form I get this:
“test”=>[“two”]
in my log, instead of both entries. What am I doing wrong? This
should be a simple task and I’ve been arguing with it all day.