I am trying to create multiple records with two collections that i have
View
<%= text_field_tag "user[]",'', :class=>"user_name" %>
<%= radio_button_tag "is_checked[]", '1',false %><br>
<%= text_field_tag "user[]",'', :class=>"user_name" %>
<%= radio_button_tag "is_checked[]", '1',false %><br>
Controller
user = params[:user]
is_checked = params[:is_checked]
user.each do|a|
u = User.new
u.name = a
u.save
end
here, i want to know how to save the is_checked value along with name..
i getting the collection for both user and is_checked but i could able to loop only one..
please, guide me how to create multiple records with the two fields
thanks