Rails: remote_form_for not playing nicely with multiple submit_tags
- by grifaton
I have a form with the following:
<% form_remote_tag :url => {:action => :wotsit} do %>
<%= submit_tag "Foo" %>
<%= submit_tag "Bah" %>
<% end %>
I would expect that the submitted parameters would reflect which button had been clicked. However, no matter which button I click, the submitted parameters include "commit"="Foo".
What am I doing wrong?