diff options
author | Stephen St. Martin <kuprishuz@gmail.com> | 2010-01-25 22:45:44 -0500 |
---|---|---|
committer | Stefan Penner <stefan.penner@gmail.com> | 2010-01-27 12:44:34 -0600 |
commit | 8b7cd5ae7ef2d8072779d756281f440f19f9500d (patch) | |
tree | d65fd7c540e3f4bb7e7617b10d7413e6f5de1cab /actionpack/lib/action_view/helpers | |
parent | 2204215b43d3dfe9e4a35785e8d4401b7f63ccbf (diff) | |
download | rails-8b7cd5ae7ef2d8072779d756281f440f19f9500d.tar.gz rails-8b7cd5ae7ef2d8072779d756281f440f19f9500d.tar.bz2 rails-8b7cd5ae7ef2d8072779d756281f440f19f9500d.zip |
fix duplidate data-submit attribute, submit_to_remote should test url
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/ajax_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/ajax_helper.rb b/actionpack/lib/action_view/helpers/ajax_helper.rb index 1a396215fc..ae37802f02 100644 --- a/actionpack/lib/action_view/helpers/ajax_helper.rb +++ b/actionpack/lib/action_view/helpers/ajax_helper.rb @@ -361,7 +361,7 @@ module ActionView attributes = extract_remote_attributes!(options) attributes.merge!(html_options) - attributes["data-submit"] = true + attributes["data-remote-submit"] = true attributes.delete("data-remote") tag(:input, attributes) |