Use image_path for local image, for asset hosts and such.

master
Rémi Vanicat 2010-11-21 12:29:57 +01:00
parent 654ce95db4
commit c5d215b914
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@
<% for album in @collection.albums %>
<%= form.fields_for :album_list do |album_fields| %>
<span>
<img src="/images/delete-24x24.png" border="" class="delete" />
<%= image_tag "delete-24x24.png", :class => "delete", :alt => "Delete" -%>
<% if album.photos.empty? %>
<%= album.title %>
<% else %>