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 10:09:04 -0200 |
commit | 71922fe5559f3b5865b89a39d56a3675491a021f (patch) | |
tree | 7e1356e1bed1f6d9f0b400c1c7abcb3e3990b4fe /actionpack/lib/action_view/helpers | |
parent | e5946e0396eaa581391a93026ebe816a3bf4409d (diff) | |
download | rails-71922fe5559f3b5865b89a39d56a3675491a021f.tar.gz rails-71922fe5559f3b5865b89a39d56a3675491a021f.tar.bz2 rails-71922fe5559f3b5865b89a39d56a3675491a021f.zip |
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
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index 7f42d6e9c3..e298751062 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -52,7 +52,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"> |