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.
This commit is contained in:
gopesht 2014-03-09 02:33:49 +05:30
parent 257226273b
commit e51cf148d2

View file

@ -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