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

This commit is contained in:
Rémi Vanicat 2010-11-21 12:29:57 +01:00
parent 654ce95db4
commit c5d215b914

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 %>