Skip to content

Commit 07c4297

Browse files
committed
Add missing type to number_field_tag documentation
1 parent 4a065d5 commit 07c4297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_view/helpers/form_tag_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def email_field_tag(name, value = nil, options = {})
582582
#
583583
# ==== Examples
584584
# number_field_tag 'quantity', nil, :in => 1...10
585-
# => <input id="quantity" name="quantity" min="1" max="9" />
585+
# => <input id="quantity" name="quantity" min="1" max="9" type="number" />
586586
def number_field_tag(name, value = nil, options = {})
587587
options = options.stringify_keys
588588
options["type"] ||= "number"

0 commit comments

Comments
 (0)