Hi,everyone:
   I use form_tag create a form and nested a button_to tag like this:
             <%= form_tag(orders_path)  do %>
                     .........     #some form fields
                    <%=button_to "remove",line_item, :method=>:delete
%>
                    <%= submit_tag "Checkout" %>
              <% end %>

  when I click "Checkout" ,the form always invokes "remove" method!
How can I solve this problem? 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to