diff options
author | DawidJanczak <dawid.janczak@gmail.com> | 2012-11-14 11:56:15 +0000 |
---|---|---|
committer | DawidJanczak <dawid.janczak@gmail.com> | 2012-11-14 11:56:15 +0000 |
commit | 89a8143d361235214de9badab318c8110510a479 (patch) | |
tree | b0cb24a5a0a13a9a3131d1c98718f1db3fd96a27 /actionpack/lib/action_view/helpers | |
parent | 1edd358177b718c969b41d6cb58c8f229f72d500 (diff) | |
download | rails-89a8143d361235214de9badab318c8110510a479.tar.gz rails-89a8143d361235214de9badab318c8110510a479.tar.bz2 rails-89a8143d361235214de9badab318c8110510a479.zip |
[ci skip] Correct examples for form_tag helper.
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-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"> |