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
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/vOJ-vaE_O9IJ.
For more options, visit https://groups.google.com/groups/opt_out.