X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..35fbcf28154b6f15f697018016fbabc952e018a5:/app/helpers/geocoder_helper.rb diff --git a/app/helpers/geocoder_helper.rb b/app/helpers/geocoder_helper.rb index f0663108e..e135917a9 100644 --- a/app/helpers/geocoder_helper.rb +++ b/app/helpers/geocoder_helper.rb @@ -11,13 +11,14 @@ module GeocoderHelper end result.each do |key, value| - html_options[:data][key.to_s.tr('_', '-')] = value + html_options[:data][key.to_s.tr("_", "-")] = value end html = "" html << result[:prefix] if result[:prefix] html << " " if result[:prefix] && result[:name] html << link_to(result[:name], url, html_options) if result[:name] + html << " " if result[:suffix] && result[:name] html << result[:suffix] if result[:suffix] html.html_safe end