fix for pic

This commit is contained in:
Harry Bomrah 2017-07-07 11:36:22 +08:00
parent a0a0a92781
commit 5d72beeb80
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
<tbody>
<% @classes.each do |clas| %>
<tr>
<% if !clas.course_pic.url.empty? %>
<% if !clas.course_pic.url.nil? %>
<td><img width="150px" src="<%= clas.course_pic.thumb.url %>" /></td>
<% else %>
<td>&nbsp;</td>