Pagination
This commit is contained in:
parent
8e78348421
commit
4a3f0724ab
2 changed files with 5 additions and 4 deletions
1
Gemfile
1
Gemfile
|
@ -1 +1,2 @@
|
|||
gem 'filters_spam', '~> 0.3'
|
||||
gem "will_paginate", "~> 3.0.pre2"
|
|
@ -37,7 +37,7 @@ protected
|
|||
end
|
||||
|
||||
def find_all_blog_posts
|
||||
@blog_posts = BlogPost.live
|
||||
@blog_posts = BlogPost.live :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