From 3310d2ccda4b9dd883fac79a12d24089a3ca7c9e Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Fri, 22 Jun 2012 21:51:45 +0100 Subject: [PATCH] Fixed nil date bug --- app/views/feeds/show.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/feeds/show.html.haml b/app/views/feeds/show.html.haml index 1ebf2f5..e08e223 100644 --- a/app/views/feeds/show.html.haml +++ b/app/views/feeds/show.html.haml @@ -24,7 +24,9 @@ %td= link_to p.title, p.url %td= p.loc['lat'] %td= p.loc['lng'] - %td= p.published.strftime("%d %b %Y %H:%M") + %td + - unless p.published.nil? + = p.published.strftime("%d %b %Y %H:%M") = link_to 'Edit', edit_feed_path(@feed) \|