更改课程列表下动态时间

This commit is contained in:
daiao 2016-07-05 10:26:55 +08:00
parent 261f440b3d
commit 7ba930f5c6
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@
<%= format_date(course.created_at) %>
</td>
<td class="center">
<%= course.updated_at.strftime('%Y-%m-%d %H:%M:%S') %>
<%= course.course_activities.order('updated_at DESC').first.updated_at.strftime('%Y-%m-%d %H:%M:%S') %>
</td>
</tr>
<% end %>