This is too funny. I was halfway through a post on railsforum asking how to do exactly this when my RSS alerted me to a new Railscast. Your timing could not be better!
d:)
One way round the AJAX form problem is to have one submit button, and use a "preview" checkbox.
how to use submit_to_remote?
will you give me a example,
i test it 10 hours ,but ,i cannt .
hehe!
I found the multibutton form can be work only for form_for, but not for form_remote_for
Nice one. I wish this worked with image_submit_tag too.
The name attribute does not not get passed back in the params hash for image_submit_tag
How can I replace submit_tag buttons with link_to or link_to_function?
I want to use multiple link_to_function to replace the submit_tag, to prevent users from accidentally sending a form when press the enter key.
However, I cannot figure out a way to pass :name => 'preview_button' in link_to_function.
This is how I submit a form via link_to_function:
<%= link_to_function('Save', "$('ProductForm').submit()") %>
Please help
Thanks






