分数显示整数

This commit is contained in:
yanxd 2014-06-12 10:52:22 +08:00
parent 19fc84afee
commit e4ed8cf970
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@
<td>
<strong>作业评分:</strong>
<%= format("%.2f", homework.rate_averages.first.try(:avg).to_i ) %>
<%= format("%.2f", homework.rate_averages.first.try(:avg).to_f ) %>
</td>
<td valign="top" align="right">
<% if Time.parse(@bid.deadline.to_s) < Time.parse(homework.created_at.to_s) %>