Pagination

This commit is contained in:
Fernando Blat 2010-10-05 17:36:49 +02:00
parent 8e78348421
commit 4a3f0724ab
2 changed files with 5 additions and 4 deletions

View file

@ -1 +1,2 @@
gem 'filters_spam', '~> 0.3'
gem "will_paginate", "~> 3.0.pre2"

View file

@ -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