Create mutiple row one time and save into database

“commit”=>“Save changes”}

I want to store object values but how to store multiple record at same
time using controller.

my controller code -

def create
params[:f].each do |user_params|

my view code -

<%= form_for(:detail, :url => {:controller => ‘details’, :action =>
‘create’}) do %>
<% @info.each do |article| %>
<%= hidden_field_tag “f[][columns_id]”, %>

<%= article.value %>
<%= text_field_tag “f[][column_value]” %>

<%= hidden_field_tag “f[][users_id]”, %>
<% end %>

<%= submit_tag %>

<% end %>

Its gives error ActiveModel::ForbiddenAttributesError how to solve
please help me

You cannot use params[:f] that way.

You want to store what object values? Is it just one object or two
objects?Try using this rails convention

Make your life easier, stick to rails conventions.

I suggest you use a Form Object for
It’s not that our form is overly complex, but it falls outside of rails
Anyway, please, do not put such logic in the controller, make a static
method on the model at least.