Permalink
Browse files

Fixed documentation error in code examples from form_tag_helper.rb

  • Loading branch information...
1 parent 95a83cc commit 8be9d92c8b8a213c7830d5ba130514f9e207cbfe @fuzzyalej fuzzyalej committed with vijaydev Dec 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -47,7 +47,7 @@ module FormTagHelper
# <% end -%>
# # => <form action="/posts" method="post"><div><input type="submit" name="submit" value="Save" /></div></form>
#
- # <%= form_tag('/posts', :remote => true) %>
+ # <%= form_tag('/posts', :remote => true) %>
# # => <form action="/posts" method="post" data-remote="true">
#
# form_tag('http://far.away.com/form', :authenticity_token => false)
@@ -577,7 +577,7 @@ def email_field_tag(name, value = nil, options = {})
#
# ==== Examples
# number_field_tag 'quantity', nil, :in => 1...10
- # => <input id="quantity" name="quantity" min="1" max="9" type="number" />
+ # # => <input id="quantity" name="quantity" min="1" max="9" type="number" />
def number_field_tag(name, value = nil, options = {})
options = options.stringify_keys
options["type"] ||= "number"

0 comments on commit 8be9d92

Please sign in to comment.