fix tags
This commit is contained in:
parent
124d9c5dee
commit
fb8d2f4eb0
|
@ -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") %>
|
||||||
|
|
Loading…
Reference in a new issue