Let's paginate
This commit is contained in:
parent
4a3f0724ab
commit
52f741bbc4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue