aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/ajax_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view/helpers/ajax_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/ajax_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/ajax_helper.rb b/actionpack/lib/action_view/helpers/ajax_helper.rb
index 4081117ad1..9c1d6a722d 100644
--- a/actionpack/lib/action_view/helpers/ajax_helper.rb
+++ b/actionpack/lib/action_view/helpers/ajax_helper.rb
@@ -1,7 +1,7 @@
module ActionView
module Helpers
module AjaxHelper
- include UrlHelper
+ include PrototypeHelper
def remote_form_for(record_or_name_or_array, *args, &proc)
options = args.extract_options!
@@ -28,7 +28,7 @@ module ActionView
attributes.merge!(options)
url = url_for(url) if url.is_a?(Hash)
- link_to(name, url, attributes)
+ content_tag(:a, name, attributes.merge(:href => url))
end
def button_to_remote(name, options = {}, html_options = {})