From 0fd35709b11cd53363cb087b86d88f0026ac0602 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 30 Jul 2010 10:26:00 -0700 Subject: [PATCH] RS, IZ, fixing error on person show with no posts --- app/views/people/show.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml index a18a5528f..0b8699c3c 100644 --- a/app/views/people/show.html.haml +++ b/app/views/people/show.html.haml @@ -10,8 +10,9 @@ .button.right = link_to 'remove friend', @person, :confirm => 'Are you sure?', :method => :delete - %li - %i= "last seen: #{how_long_ago(@person_posts.first)}" + -unless @person_posts.first.nil? + %li + %i= "last seen: #{how_long_ago(@person_posts.first)}" %li %i= "friends since: #{how_long_ago(@person)}" %li