aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorFernando Blat <ferblape@gmail.com>2010-10-05 17:40:46 +0200
committerFernando Blat <ferblape@gmail.com>2010-10-05 17:40:46 +0200
commit52f741bbc4b96e1229246ca6f9b18862ed713090 (patch)
treecf74eaa8935df5f3e8fd6754e74053c35e6c1079 /app
parent4a3f0724abac97804af43ebb432bd8cedd5813d7 (diff)
downloadrefinerycms-blog-52f741bbc4b96e1229246ca6f9b18862ed713090.tar.gz
refinerycms-blog-52f741bbc4b96e1229246ca6f9b18862ed713090.tar.bz2
refinerycms-blog-52f741bbc4b96e1229246ca6f9b18862ed713090.zip
Let's paginate
Diffstat (limited to 'app')
-rw-r--r--app/controllers/blog/posts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/blog/posts_controller.rb b/app/controllers/blog/posts_controller.rb
index 57e45fb..cee3719 100644
--- a/app/controllers/blog/posts_controller.rb
+++ b/app/controllers/blog/posts_controller.rb
@@ -37,7 +37,7 @@ protected
end
def find_all_blog_posts
- @blog_posts = BlogPost.live :page => params[:page], :per_page => RefinerySetting.find_or_set(:posts_per_page, 10)
+ @blog_posts = BlogPost.live.paginate :page => params[:page], :per_page => RefinerySetting.find_or_set(:posts_per_page, 10)
end
end