Update _form.html.erb
This commit is contained in:
parent
2c6beff36f
commit
2874329ace
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue