From 4d8e4901039c16bf2f80909666c33a16fe992d06 Mon Sep 17 00:00:00 2001 From: nikolaiwarner Date: Wed, 28 Sep 2011 10:20:44 -0400 Subject: [PATCH] fixing daily email --- app/views/user_mailer/status_email.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/user_mailer/status_email.html.haml b/app/views/user_mailer/status_email.html.haml index 77970d2..04cc2c4 100644 --- a/app/views/user_mailer/status_email.html.haml +++ b/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