Permalink
Browse files

Fix form tag with non GET/POST method example

  • Loading branch information...
1 parent e1724b5 commit 7b9faf7b283c55d35124a3c665f170663994124b @avakhov avakhov committed May 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -45,7 +45,7 @@ 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">

0 comments on commit 7b9faf7

Please sign in to comment.