Fix error in views/blog/posts/_post, looping over tag_list, should loop over tags

This commit is contained in:
Glenn Goodrich 2011-06-25 11:51:27 -04:00
parent 6ce56a33a0
commit 66d35b52f7

View file

@ -12,7 +12,7 @@
<%=raw categories.collect { |category| link_to category.title, blog_category_url(category) }.to_sentence %> <%=raw categories.collect { |category| link_to category.title, blog_category_url(category) }.to_sentence %>
</aside> </aside>
<% end %> <% end %>
<% if (tags = post.tag_list).any? %> <% if (tags = post.tags).any? %>
<aside class='tagged'> <aside class='tagged'>
<%= t('tagged', :scope => 'blog.posts.show') %> <%= t('tagged', :scope => 'blog.posts.show') %>
<%=raw tags.collect { |tag| link_to tag, tagged_posts_path(tag.id, tag.name.parameterize) }.to_sentence %> <%=raw tags.collect { |tag| link_to tag, tagged_posts_path(tag.id, tag.name.parameterize) }.to_sentence %>