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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Jon Karna at Mar 22, 2012 at 2:09 pm
    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@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedMar 19, '12 at 7:32p
activeMar 22, '12 at 2:09p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Ibtissem fakhfakh: 1 post Jon Karna: 1 post

People

Translate

site design / logo © 2021 Grokbase