From fa333400c85faff070d9e5008c95fb51f9e07eb2 Mon Sep 17 00:00:00 2001 From: Lee Lawlor Date: Fri, 23 May 2014 09:48:47 -0400 Subject: [PATCH] fix error if no user for channel --- app/views/channels/_channelinfo.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/channels/_channelinfo.html.erb b/app/views/channels/_channelinfo.html.erb index e6744ce..0823c51 100644 --- a/app/views/channels/_channelinfo.html.erb +++ b/app/views/channels/_channelinfo.html.erb @@ -2,7 +2,9 @@

<%= @channel.name %>

<%= @channel.list_tags %>
-

by <%= link_to @channel.user.login, user_profile_path(@channel.user.login) %>

+ <% if @channel.user.present? %> +

by <%= link_to @channel.user.login, user_profile_path(@channel.user.login) %>

+ <% end %>

<%= @channel.description %>