pass the :multiple option for the collection_select
http://apidock.com/rails/ActionView/Helpers/FormOptionsHelper/select
On Monday, March 19, 2012 2:32:24 PM UTC-5, ibtissem fakhfakh
wrote:>
> hi,
> i''am novice at ruby on Rails framework. i''am trying to
add a plugin for
> Redmin wich is a Rails application.
> My problem:
> i have this code in my html.erb file:
> <%= form_tag :action => "sauver" >
> <table>
> < @types.each do |untype| >
> <tr>
> <td>
> <= untype[:alertetype] >
> </td>
> <td>
> <= collection_select(:tracker, :id, @trackers, :id, :name, options
> ={:prompt => "choisir un tracker"}) >
> </td>
> </tr>
> < end %>
>
> </table>
>
> <%= submit_tag "valider" %>
>
> i need to recover all values selected. When i use
"params[:tracker][:id]"
> i have just one value posted.
> Could you help me please.
> Thank you in advance.
> Cordially
>
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/XvqfpF6LXfkJ.
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.