Browse files

Added disable_with option description to button_to helper

  • Loading branch information...
1 parent 4329f81 commit 37c44c8e707c53937237baba5ee5a100dc6cfc5c Paco Guzman committed Jun 28, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 actionpack/lib/action_view/helpers/url_helper.rb
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.

0 comments on commit 37c44c8

Please sign in to comment.