RS, IZ, fixing error on person show with no posts

This commit is contained in:
Raphael 2010-07-30 10:26:00 -07:00
parent e7ef3c06ed
commit 0fd35709b1

View file

@ -10,6 +10,7 @@
.button.right .button.right
= link_to 'remove friend', @person, :confirm => 'Are you sure?', :method => :delete = link_to 'remove friend', @person, :confirm => 'Are you sure?', :method => :delete
-unless @person_posts.first.nil?
%li %li
%i= "last seen: #{how_long_ago(@person_posts.first)}" %i= "last seen: #{how_long_ago(@person_posts.first)}"
%li %li