aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/refinery
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-01-19 13:02:11 -0800
committerPhilip Arndt <parndt@gmail.com>2012-01-19 13:02:11 -0800
commit3dbbbbfdda1dad54ac9f3e3faed040302f99051d (patch)
treef2d033d4fe7ea55d7fcd7ad1446e34c081aa82cf /app/helpers/refinery
parentb1e4fd00943a160f3eb6ce242463c0cc07a406fc (diff)
parent4eb17bb58d6701a0fd4f2ac7c30c43927c514323 (diff)
downloadrefinerycms-blog-3dbbbbfdda1dad54ac9f3e3faed040302f99051d.tar.gz
refinerycms-blog-3dbbbbfdda1dad54ac9f3e3faed040302f99051d.tar.bz2
refinerycms-blog-3dbbbbfdda1dad54ac9f3e3faed040302f99051d.zip
Merge pull request #174 from tsemana/fixes-posts-helper-namespacing
Fixes posts helper namespacing
Diffstat (limited to 'app/helpers/refinery')
-rw-r--r--app/helpers/refinery/blog/posts_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/refinery/blog/posts_helper.rb b/app/helpers/refinery/blog/posts_helper.rb
index 418f360..49e5250 100644
--- a/app/helpers/refinery/blog/posts_helper.rb
+++ b/app/helpers/refinery/blog/posts_helper.rb
@@ -36,16 +36,16 @@ 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.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.archive_blog_posts_path(:year => year))
+ link_to(text, main_app.refinery_blog_archive_posts_path(:year => year))
end
end
end
end
-end \ No newline at end of file
+end