- <%= link_to(image_tag(url_to_avatar(contest.author), :class => 'avatar'), user_path(contest.author), :class => "avatar") %> |
+
+ <% unless contest.author.nil? %>
+ <%= link_to(image_tag(url_to_avatar(contest.author), :class => 'avatar'), user_path(contest.author), :class => "avatar") %>
+ <% end %>
+ |
- <%= link_to(contest.author, user_path(contest.author), :class => 'bid_user') %>: <%= link_to(contest.name, show_contest_contest_path(contest), :class => 'bid_path', :target => "_blank") %> |
+
+ <% unless contest.author.nil? %>
+ <%= link_to(contest.author, user_path(contest.author), :class => 'bid_user') %>:
+ <% end %>
+ <%= link_to(contest.name, show_contest_contest_path(contest), :class => 'bid_path', :target => "_blank") %> |
diff --git a/app/views/forums/_forum_list.html.erb b/app/views/forums/_forum_list.html.erb
index 0bbb0ddd4..2b8f98494 100644
--- a/app/views/forums/_forum_list.html.erb
+++ b/app/views/forums/_forum_list.html.erb
@@ -3,7 +3,11 @@
<% if forums.any? %>
<% forums.each do |forum| %>
- <%= link_to image_tag(url_to_avatar(forum.creator), :class => "avatar"), user_path(forum.creator) %>
+
+ <% unless forum.creator.nil? %>
+ <%= link_to image_tag(url_to_avatar(forum.creator), :class => "avatar"), user_path(forum.creator) %>
+ <% end %>
+
<%= link_to h(forum.name), forum_path(forum) %>
<%= forum.description%>
| |