From: Tom Hughes Date: Tue, 15 Nov 2011 10:48:30 +0000 (+0000) Subject: Use asset_path to find the arrow icon X-Git-Tag: live~6011 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c61d24f08e2c3a86bdac0630fd121ae23d3c3763?hp=75f12f5b18d6965f767b5a4d5195c35901ed5c68 Use asset_path to find the arrow icon --- diff --git a/app/assets/javascripts/map.js b/app/assets/javascripts/map.js.erb similarity index 98% rename from app/assets/javascripts/map.js rename to app/assets/javascripts/map.js.erb index 61393894b..632f31456 100644 --- a/app/assets/javascripts/map.js +++ b/app/assets/javascripts/map.js.erb @@ -87,7 +87,7 @@ function createMap(divName, options) { function getArrowIcon() { var size = new OpenLayers.Size(25, 22); var offset = new OpenLayers.Pixel(-30, -27); - var icon = new OpenLayers.Icon("/images/arrow.png", size, offset); + var icon = new OpenLayers.Icon("<%= asset_path 'arrow.png' %>", size, offset); return icon; }