Skip to content

Commit

Permalink
fixing daily email
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaiwarner committed Sep 28, 2011
1 parent 27902b2 commit 4d8e490
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/user_mailer/status_email.html.haml
Expand Up @@ -21,7 +21,8 @@
%h2 %h2
Get to know your friends! Who is this? Get to know your friends! Who is this?
%p %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)) = 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/ %br/
= link_to "Learn your friends", learn_friends_url = link_to "Learn your friends", learn_friends_url
Expand Down

0 comments on commit 4d8e490

Please sign in to comment.