From 5d72beeb8033ecea8c74e0a110226b3e68feba04 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 7 Jul 2017 11:36:22 +0800 Subject: [PATCH] fix for pic --- app/views/admin/hps_learnings/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/hps_learnings/index.html.erb b/app/views/admin/hps_learnings/index.html.erb index 375d4ed..39fd6c6 100644 --- a/app/views/admin/hps_learnings/index.html.erb +++ b/app/views/admin/hps_learnings/index.html.erb @@ -9,7 +9,7 @@ <% @classes.each do |clas| %> - <% if !clas.course_pic.url.empty? %> + <% if !clas.course_pic.url.nil? %> <% else %>