From c2ed4a9f88c9a5892dee4ed3dfde65e692763e9f Mon Sep 17 00:00:00 2001 From: Jaime Iniesta Date: Tue, 31 Aug 2010 09:19:43 +0200 Subject: Fix API docs for button_to options --- actionpack/lib/action_view/helpers/url_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_view/helpers/url_helper.rb') 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+: - # * :method - Specifies the anchor name to be appended to the path. - # * :disabled - Specifies the anchor name to be appended to the path. + # * :method - Symbol of HTTP verb. Supported verbs are :post, :get, + # :delete and :put. By default it will be :post. + # * :disabled - If set to true, it will generate a disabled button. # * :confirm - 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. -- cgit v1.2.3