Permalink
Browse files

Error handling

  • Loading branch information...
1 parent 48f70be commit 7f7ddba5c66f277c693f9db821bedc7b0ba97221 @suttree committed Jun 27, 2011
Showing with 4 additions and 6 deletions.
  1. +4 −6 app/views/shared/_pic.html.erb
@@ -1,7 +1,5 @@
-<div class='pic'>
- <% begin %>
+<% if current_user %>
+ <div class='pic'>
<%= image_tag current_user.picture_url, :title => 'O hai, ' + current_user.login %>
- <% rescue %>
- <%= current_user.inspect %>
- <% end %>
-</div>
+ </div>
+<% end %>

0 comments on commit 7f7ddba

Please sign in to comment.