This commit is contained in:
Espen Antonsen 2009-06-29 00:33:48 +02:00
parent 124d9c5dee
commit fb8d2f4eb0

View file

@ -18,7 +18,10 @@
</div> </div>
<p><%= @photo.description %></p> <p><%= @photo.description %></p>
<p>Tagged with: <%= @photo.tags.find(:all).map {|tag| tag.title } %></p> <p>Tagged with:
<% for tag in @photo.tags %>
<%= link_to tag.title, tag_photos_path(tag) %>
<% end %>
<% content_for :action_links do %> <% content_for :action_links do %>
<% if has_role?("admin") %> <% if has_role?("admin") %>