Create multiple records on model

form:

<%= form_for @instruction_user, :url => new_fb_instruction_users_path do
|f| %>
<% @users.each do |user| %>
<%= user.name %>
<%= fields_for “instruction[]” do %>
<%= f.text_field :remark_tl%>

      <% end %>
      <%= check_box_tag("instruction_users_ids[]", user.id ) %>

controller:

def new_fb
@errors = []
@instruction_users = []
params[:instruction_users_ids].each do |u|
instruction_user = InstructionUser.new(:user_id => u)
if instruction_user.valid?
instruction_user.save
else
@errors += instruction_user.errors
end
end

I cant find a way to get the value of :remark_tl in…
checking google since hours…
Some help would be really nice…thanks

<%= form_for @instruction_user,

          <%= f.text_field :remark_tl%>

Have you tried:

params[:instruction_user][:remark_tl]?

See here: