提交 2e74334a 编写于 作者: J José Valim

Merge pull request #3456 from pwim/documentation-fix

Add missing type to number_field_tag documentation
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册