Merge pull request #3456 from pwim/documentation-fix

Add missing type to number_field_tag documentation
This commit is contained in:
José Valim
2011-10-27 23:42:22 -07:00

View File

@@ -582,7 +582,7 @@ module ActionView
#
# ==== 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"