fotogallery

This commit is contained in:
Andreas Stephanides
2013-08-19 20:49:07 +02:00
parent 7ab34fa845
commit d96a694a73
6 changed files with 45 additions and 26 deletions

View File

@@ -14,7 +14,14 @@
<b>Datum:</b>
<%= @gallery.datum %>
</p>
<% @gallery.fotos.each do |f| %>
<%= link_to image_tag(f.datei.big_thumb.url,{:class=>"img-polaroid"}) , gallery_foto_path(@gallery,f) %>
<% end %>
<%= link_to 'NewFoto' , new_gallery_foto_path(@gallery) %> |
<%= link_to 'Edit', edit_gallery_path(@gallery) %> |
<%= link_to 'Back', galleries_path %>