From e4ed8cf97020c76ee85ff32b7582581c72fa24eb Mon Sep 17 00:00:00 2001 From: yanxd Date: Thu, 12 Jun 2014 10:52:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=95=B0=E6=98=BE=E7=A4=BA=E6=95=B4?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/bids/_homework_list.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/bids/_homework_list.html.erb b/app/views/bids/_homework_list.html.erb index 436646196..0f605d6fa 100644 --- a/app/views/bids/_homework_list.html.erb +++ b/app/views/bids/_homework_list.html.erb @@ -75,7 +75,7 @@ 作业评分: - <%= format("%.2f", homework.rate_averages.first.try(:avg).to_i ) %> + <%= format("%.2f", homework.rate_averages.first.try(:avg).to_f ) %> <% if Time.parse(@bid.deadline.to_s) < Time.parse(homework.created_at.to_s) %>