Update _form.html.erb

This commit is contained in:
Harry Bomrah 2019-05-20 22:25:57 +08:00
parent 2c6beff36f
commit 2874329ace
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
<div class="fileupload fileupload-new clearfix <%= 'fileupload-edit' if @ad_image.file.file %>" data-provides="fileupload">
<div class="fileupload-new thumbnail pull-left">
<% if @ad_image.file.file %>
<%= image_tag @ad_image.file %>
<%= image_tag @ad_image.file.url %>
<% else %>
<img src="http://www.placehold.it/200x80/EFEFEF/AAAAAA&text=<%= @ad_banner.width %>x<%= @ad_banner.height %>" />
<% end %>