In Rails 3, I have a multi-select form control (fig. 1). When I select
more than 1 value, Firefox sends both values (fig. 2). But only the last
value gets sent as a input value to my controller (fig. 3). How do I get
all those values passed on to my controller?
      <form action="html_items/search" method="post" >
        <!-- Criteria -->
        <div style="float:none;">
          <label>Content Provider </label>
          <select multiple id="content_provider"
name="content_provider">
            <option value="FLR">Flare</option>
            <option value="SLDT">Slashdot</option>
          </select>
        </div>
        <input type="submit" value="Search" />
      </form>
fig. 1
Parametersapplication/x-www-form-urlencoded
content_provider  FLR
content_provider  SLDT
fig. 2
PARAMs[{"content_provider"=>"SLDT",
"controller"=>"html_items",
"action"=>"search"}]
...
fig. 3
Thanks
Tim
-- 
Posted via http://www.ruby-forum.com/.
-- 
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.