From e51cf148d2a5910c224f34c5448070f122e75c1f Mon Sep 17 00:00:00 2001 From: gopesht Date: Sun, 9 Mar 2014 02:33:49 +0530 Subject: [PATCH] Check for call_for_papers object. When call_for_papers object is nil then the previous check throws an error for check at line no 16. So I modified the check to see that first the call_for papers object exsist for current conference object an the rest follow. --- app/views/admin/events/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/events/index.html.haml b/app/views/admin/events/index.html.haml index fc50cbbe..04d8267a 100644 --- a/app/views/admin/events/index.html.haml +++ b/app/views/admin/events/index.html.haml @@ -13,7 +13,7 @@ %b ID %th %b Title - - if @conference.call_for_papers.rating != 0 + - if !@conference.call_for_papers.blank? && @conference.call_for_papers.rating != 0 %th %b Rating %th