I made a new pagination library for the NamedScope era.
You can use will_paginate for ordinary case.
It must be better than the young PaginationScope library.
But if you want to paginate with complicated chained named_scopes, this is suitable.
Usage
At first, include the module into your model class.
1 class Post
2 include PaginationScope
By this, the scope named "paginate" is made.
And then, in the controller of which you want to use pagination,
you can get the scope for pagination like this.
1 class PostsController < ApplicationController
2 def index
3 @posts = Post.not_deleted.paginate(params[:page], 10)
Finally, the pagination links are generated by calling the view helper, like this.
1 <%= paginate @posts %>
Have fun!