diff options
author | Joe Sak <joe@joesak.com> | 2011-01-10 16:26:22 -0600 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-01-10 16:26:22 -0600 |
commit | 41d94df0df893060bfeb8792e6cf27af8fc548b0 (patch) | |
tree | 13e2fea5045bd369c7a7743e788c27b4e3a1cf94 | |
parent | bf74b32f3fbdd50957bdf308b79846eeda7ee1fa (diff) | |
download | refinerycms-blog-41d94df0df893060bfeb8792e6cf27af8fc548b0.tar.gz refinerycms-blog-41d94df0df893060bfeb8792e6cf27af8fc548b0.tar.bz2 refinerycms-blog-41d94df0df893060bfeb8792e6cf27af8fc548b0.zip |
BlogPost != NewsItem
-rw-r--r-- | app/helpers/blog_posts_helper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/blog_posts_helper.rb b/app/helpers/blog_posts_helper.rb index 9cc637f..6b4066a 100644 --- a/app/helpers/blog_posts_helper.rb +++ b/app/helpers/blog_posts_helper.rb @@ -20,18 +20,18 @@ module BlogPostsHelper links.each do |l| year = l.split('/')[1] month = l.split('/')[0] - count = NewsItem.by_archive(Time.parse(l)).size + count = BlogPost.by_archive(Time.parse(l)).size text = t("date.month_names")[month.to_i] + " #{year} (#{count})" html << "<li>" - html << link_to(text, archive_news_items_path(:year => year, :month => month)) + html << link_to(text, archive_blog_posts_path(:year => year, :month => month)) html << "</li>" end super_old_links.each do |l| year = l.split('/')[1] - count = NewsItem.by_year(Time.parse(l)).size + count = BlogPost.by_year(Time.parse(l)).size text = "#{year} (#{count})" html << "<li>" - html << link_to(text, archive_news_items_path(:year => year)) + html << link_to(text, archive_blog_posts_path(:year => year)) html << "</li>" end html << '</ul></nav></section>' |