Use link_to instead of content_tag :a

This commit is contained in:
Javi Martín
2019-06-21 01:03:28 +02:00
parent 749428d93f
commit 08679bc9cc

View File

@@ -34,12 +34,9 @@ module MapLocationsHelper
def map_location_remove_marker(map_location, text)
tag.div class: "margin-bottom" do
content_tag :a,
id: map_location_remove_marker_link_id(map_location),
href: "#",
class: "js-location-map-remove-marker location-map-remove-marker" do
text
end
link_to text, "#",
id: map_location_remove_marker_link_id(map_location),
class: "js-location-map-remove-marker location-map-remove-marker"
end
end