mirror of
https://github.com/github/rails.git
synced 2026-01-10 07:07:54 -05:00
[ci skip] Correct examples for form_tag helper.
This commit is contained in:
@@ -45,7 +45,7 @@ module ActionView
|
||||
# # => <form action="/posts" method="post">
|
||||
#
|
||||
# form_tag('/posts/1', :method => :put)
|
||||
# # => <form action="/posts/1" method="put">
|
||||
# # => <form action="/posts/1" method="post"> ... <input name="_method" type="hidden" value="put" /> ...
|
||||
#
|
||||
# form_tag('/upload', :multipart => true)
|
||||
# # => <form action="/upload" method="post" enctype="multipart/form-data">
|
||||
@@ -53,7 +53,7 @@ module ActionView
|
||||
# <%= form_tag('/posts') do -%>
|
||||
# <div><%= submit_tag 'Save' %></div>
|
||||
# <% 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="commit" value="Save" /></div></form>
|
||||
#
|
||||
# <%= form_tag('/posts', :remote => true) %>
|
||||
# # => <form action="/posts" method="post" data-remote="true">
|
||||
|
||||
Reference in New Issue
Block a user