From 08679bc9cc9d5a3c874f95f107c5483ee4aa3d48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 21 Jun 2019 01:03:28 +0200 Subject: [PATCH] Use `link_to` instead of `content_tag :a` --- app/helpers/map_locations_helper.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/helpers/map_locations_helper.rb b/app/helpers/map_locations_helper.rb index 306c229b5..0cbee2b69 100644 --- a/app/helpers/map_locations_helper.rb +++ b/app/helpers/map_locations_helper.rb @@ -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