Permalink
Browse files

Fix syntax errors in the documentation for image submit tag. Closes #…

…11073 [wharris]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8970 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent c1abe44 commit b18585fb06a9eb9f5fa64e53594885f330167ad0 @NZKoz NZKoz committed Mar 2, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -370,13 +370,13 @@ def submit_tag(value = "Save changes", options = {})
# image_submit_tag("login.png")
# # => <input src="/images/login.png" type="image" />
#
- # image_submit_tag("purchase.png"), :disabled => true
+ # image_submit_tag("purchase.png", :disabled => true)
# # => <input disabled="disabled" src="/images/purchase.png" type="image" />
#
- # image_submit_tag("search.png"), :class => 'search-button'
+ # image_submit_tag("search.png", :class => 'search-button')
# # => <input class="search-button" src="/images/search.png" type="image" />
#
- # image_submit_tag("agree.png"), :disabled => true, :class => "agree-disagree-button"
+ # image_submit_tag("agree.png", :disabled => true, :class => "agree-disagree-button")
# # => <input class="agree-disagree-button" disabled="disabled" src="/images/agree.png" type="image" />
def image_submit_tag(source, options = {})
tag :input, { "type" => "image", "src" => path_to_image(source) }.update(options.stringify_keys)

0 comments on commit b18585f

Please sign in to comment.