I want to disable the form when an user submits, I know that u can do
this with javascript. But i dont want to put code for each form on my
website, and I have a lot of forms like…
submit_tag also accepts an option :disable_with.
If this is set, the submit_tag is disabled on click, with the button’s
text getting changed to the value of :disable_with…
submit_tag “save”, :disable_with => ‘saving…’
I’ve never used this, but looking at the rdoc, it seems like that’s the
idea…
This is a javascript which gets called by the button’s onClick event
though, and you mentioned you weren’t fond of using JS.