<%= form_tag({controller: "myController", action: "myAction"}, method:
"post") %>

<% @users.each do |user| %>
   <%= fields_for user do |us| %>
       <%= counter %> <% counter += 1 %>
       <%= user.firstname %>
       <%=   user.lastname %>
       <%= user.email_address %>
       <%= user.uid %>
       <%= user.sent %>
       <%= check_box_tag "scope[]", user.uid, user.in_scope %>
       <%= check_box_tag "stats[]", user.uid, user.in_stats %>
    <% end %>
<% end %>

<%= submit_tag %>
<%end%>

I think this will not create multiple submit button.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/8910311245c20babf945782d9b30df18%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to