I am trying to implement some ajax forms and I need to have multiple buttons that submit the whole form.
I initially tried having two submit buttons and I was planning to read the value of the button in the controller to see which one was clicked, and then call the appropriate action. There seems to be a well known issue with Ajax forms that only the first button gets serialized so you'll always see the same action. There is a workaround but it's a little ugly.. I found submit_to_remote which I could use to submit the form data to different actions, but the book I have says that this function is unpredictable and shouldn't be used. I can't find any other place that mentions this. Is this still true? Is it unreliable to use submit_to_remote? Is there a better way? -- 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.

