Add a hidden field to the form and a simple onclick action to the submit
buttons:
<% form_remote_tag :url => {:action => 'dispatch_to_wanted_method'} do -%>
<%= hidden_field_tag :commit_choice %>
... (rest of form)
<%= submit_tag 'Choice 1', :onclick =>
"$('commit_choice').value=this.value" %>
<%= submit_tag 'Choice 2', :onclick =>
"$('commit_choice').value=this.value" %>
<% end -%>
Then, use an if or case statement in your action to look at the value of
params[:commit_choice] instead of the actual commit buttons.
Hope this helps save someone some time.
-Bill
--
Sincerely,
William Pratt