method
submit_tag
submit_tag(value = "Save changes", options = {})
public
Creates a submit button with the text value as the caption. If options contains a pair with the key of "disable_with", then the value will be used to rename a disabled version of the submit button.
Register or
log in
to add new notes.
boblin -
June 5, 2012
carlosbrando -
June 7, 2012 - (>= v3.2.3)
1 thank
:disable_with is deprecated
Since version 3.2.5 you should not use :disable_with.
Use this:
<%= submit_tag "Login", 'data-disable-with' => "Please wait.." %>
0 thanks
:disable_with is deprecated
Or you can use this way:
<%= submit_tag "Login", data: { disable_with: "Please wait.." } %>


