Browse files

Merge pull request #8218 from DawidJanczak/form-tag-doc

[ci skip] Correct examples for form_tag helper.
  • Loading branch information...
2 parents 1edd358 + 89a8143 commit 492c8de43338ae4a282f37930fc348b6fcc2ffdf @carlosantoniodasilva carlosantoniodasilva committed Nov 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/form_tag_helper.rb
View
4 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -45,15 +45,15 @@ module FormTagHelper
# # => <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">
#
# <%= 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">

0 comments on commit 492c8de

Please sign in to comment.