From 7a3f5d0d9b4e807d8d374799ffc9915bdf27d959 Mon Sep 17 00:00:00 2001 From: Mikko Juola Date: Sun, 1 Jun 2014 22:23:46 +0900 Subject: [PATCH] Don't crash at /home if user has no server accounts. --- views/home.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/home.haml b/views/home.haml index 144b8e91..49fb42d2 100644 --- a/views/home.haml +++ b/views/home.haml @@ -85,7 +85,7 @@ %p No invitations for this account - clanless_accs = @user.accounts.select{|a| a.clan.nil?} - - if not @user.clan + - if not @user.clan and not clanless_accs.empty? %div.text_content.non_top_post %h2 Create a new clan %form#create_clan_form.smallform{:method => "POST", :action => "/clan"}