From 606ce3f907cbccd9159bb558c0b57433b42f3975 Mon Sep 17 00:00:00 2001 From: claudiob Date: Mon, 22 Sep 2014 00:34:39 -0700 Subject: Remove wrapping
in form helpers from doc [ci skip] 89ff1f8 and 1de258e6 removed from the HTML generated by the form helpers the
that was wrapping the field elements inside the
. This commit updates the documentation of the methods to reflect the two commits above. --- actionview/lib/action_view/helpers/url_helper.rb | 36 +++++++++--------------- 1 file changed, 14 insertions(+), 22 deletions(-) (limited to 'actionview/lib/action_view/helpers/url_helper.rb') diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb index c3be47133c..364414da05 100644 --- a/actionview/lib/action_view/helpers/url_helper.rb +++ b/actionview/lib/action_view/helpers/url_helper.rb @@ -229,59 +229,51 @@ module ActionView # ==== Examples # <%= button_to "New", action: "new" %> # # => " - # #
+ # # # #
" # # <%= button_to "New", new_articles_path %> # # => "
- # #
+ # # # #
" # # <%= button_to [:make_happy, @user] do %> # Make happy <%= @user.name %> # <% end %> # # => "
- # #
- # # - # #
+ # # # #
" # # <%= button_to "New", { action: "new" }, form_class: "new-thing" %> # # => "
- # #
+ # # # #
" # # # <%= button_to "Create", { action: "create" }, remote: true, form: { "data-type" => "json" } %> # # => "
- # #
- # # - # # - # #
+ # # + # # # #
" # # # <%= button_to "Delete Image", { action: "delete", id: @image.id }, # method: :delete, data: { confirm: "Are you sure?" } %> # # => "
- # #
- # # - # # - # # - # #
+ # # + # # + # # # #
" # # # <%= button_to('Destroy', 'http://www.example.com', # method: "delete", remote: true, data: { confirm: 'Are you sure?', disable_with: 'loading...' }) %> # # => "
- # #
- # # - # # - # # - # #
+ # # + # # + # # # #
" # # def button_to(name = nil, options = nil, html_options = nil, &block) -- cgit v1.2.3