Permalink
Browse files

fixing daily email

  • Loading branch information...
1 parent 27902b2 commit 4d8e4901039c16bf2f80909666c33a16fe992d06 @nikolaiwarner committed Sep 28, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/views/user_mailer/status_email.html.haml
@@ -21,7 +21,8 @@
%h2
Get to know your friends! Who is this?
%p
- - if random_friend = Friend.random @user
+ - random_friend = Friend.random @user
+ - if random_friend
= random_friend.portrait? ? link_to(image_tag(random_friend.portrait_url), friend_url(random_friend)) : link_to("Add a portrait for #{random_friend.name}", friend_url(random_friend))
%br/
= link_to "Learn your friends", learn_friends_url

0 comments on commit 4d8e490

Please sign in to comment.