diff options
author | Tony Semana <tony.semana@gmail.com> | 2012-01-17 15:17:43 -0500 |
---|---|---|
committer | Tony Semana <tony.semana@gmail.com> | 2012-01-17 15:17:43 -0500 |
commit | 4eb17bb58d6701a0fd4f2ac7c30c43927c514323 (patch) | |
tree | f2d033d4fe7ea55d7fcd7ad1446e34c081aa82cf /app | |
parent | f77592bc0533187b1463d999703163dee9b8393e (diff) | |
download | refinerycms-blog-4eb17bb58d6701a0fd4f2ac7c30c43927c514323.tar.gz refinerycms-blog-4eb17bb58d6701a0fd4f2ac7c30c43927c514323.tar.bz2 refinerycms-blog-4eb17bb58d6701a0fd4f2ac7c30c43927c514323.zip |
Fixed to show the word 'blog' only once in route
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/refinery/blog/posts_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/refinery/blog/posts_helper.rb b/app/helpers/refinery/blog/posts_helper.rb index 99acb48..49e5250 100644 --- a/app/helpers/refinery/blog/posts_helper.rb +++ b/app/helpers/refinery/blog/posts_helper.rb @@ -36,14 +36,14 @@ module Refinery count = Blog::Post.by_archive(Time.parse(post_date)).size text = t("date.month_names")[month.to_i] + " #{year} (#{count})" - link_to(text, main_app.refinery_blog_archive_blog_posts_path(:year => year, :month => month)) + link_to(text, main_app.refinery_blog_archive_posts_path(:year => year, :month => month)) else post_date = post.published_at.strftime('01/%Y') year = post_date.split('/')[1] count = Refinery::Blog::Post.by_year(Time.parse(post_date)).size text = "#{year} (#{count})" - link_to(text, main_app.refinery_blog_archive_blog_posts_path(:year => year)) + link_to(text, main_app.refinery_blog_archive_posts_path(:year => year)) end end end |