diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index fb89641a16..bb753ae27a 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -393,21 +393,17 @@ module ActionView # submit_tag "Save edits", :disabled => true # # => # - # # submit_tag "Complete sale", :disable_with => "Please wait..." - # # => + # # => # # submit_tag nil, :class => "form_submit" # # => # # submit_tag "Edit", :disable_with => "Editing...", :class => "edit_button" - # # => + # # => # # submit_tag "Save", :confirm => "Are you sure?" - # # => + # # => # def submit_tag(value = "Save changes", options = {}) options = options.stringify_keys @@ -455,8 +451,7 @@ module ActionView # # # # button_tag "Checkout", :disable_with => "Please wait..." - # # => + # # => # def button_tag(content_or_options = nil, options = nil, &block) options = content_or_options if block_given? && content_or_options.is_a?(Hash)