From 8aefa3ee75e261488a39ea9d26a767c9db696c20 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 23 Jun 2007 17:37:44 +0000 Subject: Docfix (closes #8353) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7105 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/form_tag_helper.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index 5b5dace5ee..cf8fb74f59 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -128,8 +128,14 @@ module ActionView tag :input, html_options end - # Creates a submit button with the text value as the caption. If options contains a pair with the key of "disable_with", + # 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. + # + # Options: + # * :disable_with - When specified the button will be disabled when clicked and the value will be replaced with the + # the string provided. + # # Outputs + # <%= submit_tag 'Send', :disable_with => 'Saving...' %> def submit_tag(value = "Save changes", options = {}) options.stringify_keys! -- cgit v1.2.3