aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-06-21 23:09:18 -0500
committerJoe Sak <joe@joesak.com>2011-06-21 23:09:18 -0500
commit39a5167c20e82f41b32de1814227a4fec42428d6 (patch)
tree36dadbc0c92c214b2732d7501ea8f3e752dd7c40 /app/views
parent074f8cf67b96e69528c46de1449dc5f4a6ef473a (diff)
downloadrefinerycms-blog-39a5167c20e82f41b32de1814227a4fec42428d6.tar.gz
refinerycms-blog-39a5167c20e82f41b32de1814227a4fec42428d6.tar.bz2
refinerycms-blog-39a5167c20e82f41b32de1814227a4fec42428d6.zip
tag url strategy updated
Diffstat (limited to 'app/views')
-rw-r--r--app/views/blog/shared/_post.html.erb2
-rw-r--r--app/views/blog/shared/_tags.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb
index e3ce714..00e5d23 100644
--- a/app/views/blog/shared/_post.html.erb
+++ b/app/views/blog/shared/_post.html.erb
@@ -15,7 +15,7 @@
<% if (tags = post.tag_list).any? %>
<aside class='tagged'>
<%= t('tagged', :scope => 'blog.posts.show') %>
- <%=raw tags.collect { |tag| link_to tag, tagged_posts_path(tag.parameterize) }.to_sentence %>
+ <%=raw tags.collect { |tag| link_to tag, tagged_posts_path(tag.id, tag.name.parameterize) }.to_sentence %>
</aside>
<% end %>
</section>
diff --git a/app/views/blog/shared/_tags.html.erb b/app/views/blog/shared/_tags.html.erb
index 140e60e..b0b11ee 100644
--- a/app/views/blog/shared/_tags.html.erb
+++ b/app/views/blog/shared/_tags.html.erb
@@ -2,7 +2,7 @@
<h2><%= t('.title') %></h2>
<nav id='tags'>
<% tag_cloud(@tags, %w(tag1 tag2 tag3 tag4)) do |tag, css_class| %>
- <%= link_to tag.name, tagged_posts_path(tag.name.parameterize), :class => css_class %>
+ <%= link_to tag.name, tagged_posts_path(tag.id, tag.name.parameterize), :class => css_class %>
<% end %>
</nav>
<% end %> \ No newline at end of file