diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-14 04:06:32 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-14 04:06:32 -0800 |
commit | 492c8de43338ae4a282f37930fc348b6fcc2ffdf (patch) | |
tree | b0cb24a5a0a13a9a3131d1c98718f1db3fd96a27 /actionpack | |
parent | 1edd358177b718c969b41d6cb58c8f229f72d500 (diff) | |
parent | 89a8143d361235214de9badab318c8110510a479 (diff) | |
download | rails-492c8de43338ae4a282f37930fc348b6fcc2ffdf.tar.gz rails-492c8de43338ae4a282f37930fc348b6fcc2ffdf.tar.bz2 rails-492c8de43338ae4a282f37930fc348b6fcc2ffdf.zip |
Merge pull request #8218 from DawidJanczak/form-tag-doc
[ci skip] Correct examples for form_tag helper.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index 670ff18a66..f0573437ca 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -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"> |