<% @fixture.each do |data| %> <% num = 1 %> <td> <%= data.matchdate %></td> <td><%= radio_button_tag(num,data.team ,:checked =>true) %><%= label :team, data.team %> </td> <td> <%= radio_button_tag(num,data.winteam) %><%= label :team, data.winteam %></td> <% num = num + 1 %> </tr> <% end %>
how to work on params of radio button in case of multiple rows? for one row i can do it using params[num]. please suggest. thanks Jai -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5e2f92db-9c77-4151-825a-fb3d062e8a62%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.