I have a form_tag(foo_path(@foo), remote: true, id: \'foo-form\' form and a submit button submit_tag (\"Submit\", :id => \"foo-submit\")
form_tag(foo_path(@foo), remote: true, id: \'foo-form\'
submit_tag (\"Submit\", :id => \"foo-submit\")
use
submit_tag "Submit", id: "foo-submit", data: { disable_with: "Please wait..." }