From 1fc6036b4b2fe314e30513925fd6b42a2b634b4b Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Thu, 29 Dec 2011 22:58:57 +0530 Subject: [PATCH] revise some doc changes --- .../lib/action_view/helpers/form_tag_helper.rb | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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)