From e3950bb614a9fb248e5b010a09470e24e60b86a2 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Fri, 22 Feb 2013 13:13:54 +0000 Subject: [PATCH] Use new lat and lon attributes --- app/views/feeds/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/feeds/show.html.haml b/app/views/feeds/show.html.haml index fe65166..4863bc5 100644 --- a/app/views/feeds/show.html.haml +++ b/app/views/feeds/show.html.haml @@ -28,7 +28,7 @@ - @posts.each do |p| %tr %td= link_to p.title, p.url - %td= link_to "Map", "https://maps.google.co.uk/maps?q=%s,%s&hl=en&z=18" % [ p.loc['lat'], p.loc['lng'] ], :target => "_blank" + %td= link_to "Map", "https://maps.google.co.uk/maps?q=%s,%s&hl=en&z=18" % [ p.lat, p.lon ], :target => "_blank" %td - unless p.published.nil? = p.published.strftime("%d %b %Y %H:%M")