Skip to content
Browse files

Fix API docs for button_to options

  • Loading branch information...
1 parent 3623716 commit c2ed4a9f88c9a5892dee4ed3dfde65e692763e9f @jaimeiniesta jaimeiniesta committed Aug 31, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 actionpack/lib/action_view/helpers/url_helper.rb
View
5 actionpack/lib/action_view/helpers/url_helper.rb
@@ -269,8 +269,9 @@ def link_to(*args, &block)
# 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.

0 comments on commit c2ed4a9

Please sign in to comment.
Something went wrong with that request. Please try again.