Browse Source

Fixed nil date bug

master
Adrian Short 12 years ago
parent
commit
3310d2ccda
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/views/feeds/show.html.haml

+ 3
- 1
app/views/feeds/show.html.haml View File

@@ -24,7 +24,9 @@
%td= link_to p.title, p.url %td= link_to p.title, p.url
%td= p.loc['lat'] %td= p.loc['lat']
%td= p.loc['lng'] %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) = link_to 'Edit', edit_feed_path(@feed)
\| \|


Loading…
Cancel
Save