Permalink
Browse files

Add missing type to number_field_tag documentation

  • Loading branch information...
1 parent 4a065d5 commit 07c4297282c9c2d0768922722ad2ab08dedf4d8d @pwim pwim committed Oct 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_tag_helper.rb
View
2 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -582,7 +582,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" />
+ # => <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 07c4297

Please sign in to comment.