mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed documentation error in code examples from form_tag_helper.rb
This commit is contained in:
parent
04d308a03b
commit
ec2cf2499a
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ module ActionView
|
||||||
# <% end -%>
|
# <% end -%>
|
||||||
# # => <form action="/posts" method="post"><div><input type="submit" name="submit" value="Save" /></div></form>
|
# # => <form action="/posts" method="post"><div><input type="submit" name="submit" value="Save" /></div></form>
|
||||||
#
|
#
|
||||||
# <%= form_tag('/posts', :remote => true) %>
|
# <%= form_tag('/posts', :remote => true) %>
|
||||||
# # => <form action="/posts" method="post" data-remote="true">
|
# # => <form action="/posts" method="post" data-remote="true">
|
||||||
#
|
#
|
||||||
# form_tag('http://far.away.com/form', :authenticity_token => false)
|
# form_tag('http://far.away.com/form', :authenticity_token => false)
|
||||||
|
@ -577,7 +577,7 @@ module ActionView
|
||||||
#
|
#
|
||||||
# ==== Examples
|
# ==== Examples
|
||||||
# number_field_tag 'quantity', nil, :in => 1...10
|
# number_field_tag 'quantity', nil, :in => 1...10
|
||||||
# => <input id="quantity" name="quantity" min="1" max="9" type="number" />
|
# # => <input id="quantity" name="quantity" min="1" max="9" type="number" />
|
||||||
def number_field_tag(name, value = nil, options = {})
|
def number_field_tag(name, value = nil, options = {})
|
||||||
options = options.stringify_keys
|
options = options.stringify_keys
|
||||||
options["type"] ||= "number"
|
options["type"] ||= "number"
|
||||||
|
|
Loading…
Reference in a new issue