Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added disable_with option description to button_to helper

  • Loading branch information...
commit 37c44c8e707c53937237baba5ee5a100dc6cfc5c 1 parent 4329f81
@pacoguzman pacoguzman authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 actionpack/lib/action_view/helpers/url_helper.rb
View
4 actionpack/lib/action_view/helpers/url_helper.rb
@@ -285,6 +285,10 @@ def link_to(*args, &block)
# * <tt>:confirm</tt> - This will use the unobtrusive JavaScript driver to
# prompt with the question specified. If the user accepts, the link is
# processed normally, otherwise no action is taken.
+ # * <tt>:disable_with</tt> - This will use the unobtrusive JavaScript driver to
+ # set the input value to the message specified when the user clicks the button and disable the
+ # button while the ajax call is executed. Then the input value is set to the original and the button
+ # is enabled
# * <tt>:remote</tt> - If set to true, will allow the Unobtrusive JavaScript drivers to control the
# submit behaviour. By default this behaviour is an ajax submit.
#
Please sign in to comment.
Something went wrong with that request. Please try again.