aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_tag_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-06-21 05:26:40 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-06-21 05:26:40 +0000
commit5ba31b3d1dc7a3ac1e69a799ce3400a09cc5dbdb (patch)
tree0c2e5a6bb19f7f6432b0b7da427a05ad0506a062 /actionpack/lib/action_view/helpers/form_tag_helper.rb
parent9113aa2744ef1daba403eafdbb6e6f3594acaacd (diff)
downloadrails-5ba31b3d1dc7a3ac1e69a799ce3400a09cc5dbdb.tar.gz
rails-5ba31b3d1dc7a3ac1e69a799ce3400a09cc5dbdb.tar.bz2
rails-5ba31b3d1dc7a3ac1e69a799ce3400a09cc5dbdb.zip
Changed the default name of the input tag generated by FormTagHelper#submit_tag from "submit" to "commit" so it doesnt clash with form.submit() calls in Javascript #1271
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1456 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_tag_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_tag_helper.rb2
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 126a407cad..ed8c1c1d3e 100644
--- a/actionpack/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -76,7 +76,7 @@ module ActionView
end
def submit_tag(value = "Save changes", options = {})
- tag("input", { "type" => "submit", "name" => "submit", "value" => value }.update(convert_options(options)))
+ tag("input", { "type" => "submit", "name" => "commit", "value" => value }.update(convert_options(options)))
end
def image_submit_tag(source, options = {})