X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..e3de1c457205e281fcae31e42fd8651b37a4c214:/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