--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/O-UeEUuWFGoJ.
For more options, visit https://groups.google.com/groups/opt_out.
Thank you @Werner its Working.On Thu, Jan 24, 2013 at 7:59 PM, Werner <webagent...@googlemail.com> wrote:
something like that:
<% 1.upto(2) do |i| %>
<%= text_field_tag "fields[#{i}][user_name]",'', :class => "user_name" %>
<%= radio_button_tag "fields[#{i}][is_checked]", '1', false %><br>
<% end %>
params[:fields].each do |i, values|
u = User.create(values)
end