分数显示整数
This commit is contained in:
parent
19fc84afee
commit
e4ed8cf970
|
@ -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) %>
|
||||
|
|
Loading…
Reference in New Issue