From 4c8ac8a8b61919b96bbc03d76378d57c55d5686b Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 7 Mar 2019 11:20:50 +0800 Subject: [PATCH] .. --- app/views/subjects/_subject_item.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/subjects/_subject_item.html.erb b/app/views/subjects/_subject_item.html.erb index ac08c8a6..abcf0f11 100644 --- a/app/views/subjects/_subject_item.html.erb +++ b/app/views/subjects/_subject_item.html.erb @@ -20,8 +20,8 @@ <%= subject.stages_count %> <% end %> - <% if subject.member_count > 0 %> - <%= subject.member_count %> + <% if subject.try(:member_count).to_i > 0 %> + <%= subject.try(:member_count) %> <% end %>