aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/url_helper.rb
diff options
context:
space:
mode:
authorJaime Iniesta <jaimeiniesta@gmail.com>2010-08-31 09:19:43 +0200
committerJaime Iniesta <jaimeiniesta@gmail.com>2010-08-31 09:19:43 +0200
commitc2ed4a9f88c9a5892dee4ed3dfde65e692763e9f (patch)
tree86e425956f3eec993af30a3123a48f7c16b32307 /actionpack/lib/action_view/helpers/url_helper.rb
parent362371690ffd72fc6ef3bf46c23d38be6e1f4ba0 (diff)
downloadrails-c2ed4a9f88c9a5892dee4ed3dfde65e692763e9f.tar.gz
rails-c2ed4a9f88c9a5892dee4ed3dfde65e692763e9f.tar.bz2
rails-c2ed4a9f88c9a5892dee4ed3dfde65e692763e9f.zip
Fix API docs for button_to options
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index b0401c9859..56b38b57f4 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -269,8 +269,9 @@ module ActionView
# The +options+ hash accepts the same options as url_for.
#
# There are a few special +html_options+:
- # * <tt>:method</tt> - Specifies the anchor name to be appended to the path.
- # * <tt>:disabled</tt> - Specifies the anchor name to be appended to the path.
+ # * <tt>:method</tt> - Symbol of HTTP verb. Supported verbs are <tt>:post</tt>, <tt>:get</tt>,
+ # <tt>:delete</tt> and <tt>:put</tt>. By default it will be <tt>:post</tt>.
+ # * <tt>:disabled</tt> - If set to true, it will generate a disabled button.
# * <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.