]> git.openstreetmap.org Git - rails.git/commitdiff
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 35f05028da52798a70aded8d2c3a42b4f473b8ee..240025fa7484a00ec0300ecf96c687a1ed0a86f2 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"