aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_tag_helper.rb
diff options
context:
space:
mode:
authorAlejandro Andrés <fuzzy.alej@gmail.com>2011-12-30 11:00:04 +0100
committerAlejandro Andrés <fuzzy.alej@gmail.com>2011-12-30 11:00:04 +0100
commitec2cf2499aac5992f09182b0d2353ebf0c733374 (patch)
treee4fedf8ca4ca5b2965df4be3eeb5c8b75dde2425 /actionpack/lib/action_view/helpers/form_tag_helper.rb
parent04d308a03bbd904bac62f9c5453da37de940adc6 (diff)
downloadrails-ec2cf2499aac5992f09182b0d2353ebf0c733374.tar.gz
rails-ec2cf2499aac5992f09182b0d2353ebf0c733374.tar.bz2
rails-ec2cf2499aac5992f09182b0d2353ebf0c733374.zip
Fixed documentation error in code examples from form_tag_helper.rb
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_tag_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_tag_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb
index bb753ae27a..e3ad96ec1b 100644
--- a/actionpack/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -47,7 +47,7 @@ module ActionView
# <% 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 @@ module ActionView
#
# ==== 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"