diff --git a/app/views/photos/show.html.erb b/app/views/photos/show.html.erb index b62537a..7d41b4a 100644 --- a/app/views/photos/show.html.erb +++ b/app/views/photos/show.html.erb @@ -18,7 +18,10 @@
<%= @photo.description %>
-Tagged with: <%= @photo.tags.find(:all).map {|tag| tag.title } %>
+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") %>