Permalink
Browse files

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

[ci skip] Correct examples for form_tag helper.

Conflicts:
	actionpack/lib/action_view/helpers/form_tag_helper.rb
  • Loading branch information...
1 parent e5946e0 commit 71922fe5559f3b5865b89a39d56a3675491a021f @carlosantoniodasilva carlosantoniodasilva committed Nov 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -52,7 +52,7 @@ module FormTagHelper
# <%= 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 71922fe

Please sign in to comment.