Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed formatting of code examples in form_tag_helper.rb

  • Loading branch information...
commit 5f57d2ad907c09d2070fe4015aa167a550fcf80a 1 parent d8a43e2
@fuzzyalej fuzzyalej authored vijaydev committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/lib/action_view/helpers/form_tag_helper.rb
View
8 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -407,7 +407,7 @@ def radio_button_tag(name, value, checked = false, options = {})
#
# submit_tag "Save", :confirm => "Are you sure?"
# # => <input name='commit' type='submit' value='Save'
- # data-confirm="Are you sure?" />
+ # # data-confirm="Are you sure?" />
#
def submit_tag(value = "Save changes", options = {})
options = options.stringify_keys
@@ -451,12 +451,12 @@ def submit_tag(value = "Save changes", options = {})
# content_tag(:strong, 'Ask me!')
# end
# # => <button name="button" type="button">
- # <strong>Ask me!</strong>
- # </button>
+ # # <strong>Ask me!</strong>
+ # # </button>
#
# button_tag "Checkout", :disable_with => "Please wait..."
# # => <button data-disable-with="Please wait..." name="button"
- # type="submit">Checkout</button>
+ # # type="submit">Checkout</button>
#
def button_tag(content_or_options = nil, options = nil, &block)
options = content_or_options if block_given? && content_or_options.is_a?(Hash)

0 comments on commit 5f57d2a

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