rails2
Espen Antonsen 2009-06-29 00:33:48 +02:00
parent 124d9c5dee
commit fb8d2f4eb0
1 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,10 @@
</div>
<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 %>
<% if has_role?("admin") %>