mirror of
https://github.com/github/rails.git
synced 2026-01-10 15:18:13 -05:00
Merge pull request #3456 from pwim/documentation-fix
Add missing type to number_field_tag documentation
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user