mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
adding :href override to link_to_remote
This commit is contained in:
committed by
Stefan Penner
parent
56ae6550b8
commit
9fe845670d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user