adding :href override to link_to_remote

This commit is contained in:
Erik St. Martin
2010-01-26 03:00:38 -05:00
committed by Stefan Penner
parent 56ae6550b8
commit 9fe845670d

View File

@@ -304,8 +304,10 @@ module ActionView
end
attributes.merge!(html_options)
href = options[:href].nil? ? "#" : options[:href]
attributes.merge!(:href => href)
content_tag(:a, name, attributes.merge(:href => "#"))
content_tag(:a, name, attributes)
end
# Creates a button with an onclick event which calls a remote action