From 91a4850525799b8c77836b024fbf0d29c433b48b Mon Sep 17 00:00:00 2001 From: Lee Lawlor Date: Fri, 20 Jun 2014 14:57:39 -0400 Subject: [PATCH] fix error when no user for channel --- app/views/channels/_list.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/channels/_list.html.erb b/app/views/channels/_list.html.erb index 1d9a3bc..035f2f9 100644 --- a/app/views/channels/_list.html.erb +++ b/app/views/channels/_list.html.erb @@ -7,7 +7,7 @@

<%= link_to truncate(channel.name, length: 23), channel_path(channel.id), :id => "showsite_#{channel.id}" %>

-

by <%= channel.user.login %>

+

by <%= channel.user.login if channel.user.present? %>

<%= channel.description %>