From 582a7c47a4f831e58746d821dfe293722d30d5e0 Mon Sep 17 00:00:00 2001 From: huang Date: Mon, 30 Nov 2015 15:42:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8B=B1=E9=9B=84?= =?UTF-8?q?=E7=89=88=E4=B8=BA0=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_courses.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb index 603f7febb..82651a73a 100644 --- a/app/views/layouts/base_courses.html.erb +++ b/app/views/layouts/base_courses.html.erb @@ -240,11 +240,11 @@ <% end %> <% hero_homework_scores = hero_homework_score(@course, "desc") %> - <% unless hero_homework_scores.map(&:score).detect{|s| s != nil}.nil? %> + <% unless hero_homework_scores.map(&:score).detect{|s| s.to_i != 0}.nil? %>