From 8b7cd5ae7ef2d8072779d756281f440f19f9500d Mon Sep 17 00:00:00 2001 From: "Stephen St. Martin" Date: Mon, 25 Jan 2010 22:45:44 -0500 Subject: fix duplidate data-submit attribute, submit_to_remote should test url --- actionpack/lib/action_view/helpers/ajax_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view') 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) -- cgit v1.2.3