Update rss.rss.builder
authorBen Marchant <ben_marchant@hotmail.com>
Wed, 23 Dec 2015 18:35:27 +0000 (18:35 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 23 Dec 2015 18:39:31 +0000 (18:39 +0000)
Change from hard coding URL to using image_path method that wil
resolve to the correct asset path.

app/views/diary_entry/rss.rss.builder

index 35f0502..240025f 100644 (file)
@@ -8,7 +8,7 @@ xml.rss("version" => "2.0",
     xml.description @description
     xml.link url_for(:action => "list", :host => SERVER_URL)
     xml.image do
-      xml.url "http://www.openstreetmap.org/images/mag_map-rss2.0.png"
+      xml.url image_path("mag_map-rss2.0.png")
       xml.title "OpenStreetMap"
       xml.width "100"
       xml.height "100"