I\'ve tried the following:
<%= form_for .... do |f| %>
<%= f.label \"test1\" %>
<%= radio_button_tag \'value[]\', \"1\" %>
Try this and let me know what happens:
<%= form_for .... do |f| %>
<%= f.label 'test1' %>
<%= radio_button_tag 'value[group_one]', '1' %>
<%= radio_button_tag 'value[group_one]', '2' %>
<%= f.label 'test2' %>
<%= radio_button_tag 'value[group_two]', '1' %>
<%= radio_button_tag 'value[group_two]', '2' %>
<%= f.submit 'test_send' %>
<% end %>
You should be able to get your data in the controller with params[:value]
and then params[:value][:group_one]
and params[:value][:group_two]
.