pagination_scope

This is a rails plugin module for mixing in pagination function.

Description

This library is suitable to use together with complicated named_scope which has :joins options. You can use the WillPaginate for ordinary case of pagination.

Installation

Archive Installation

rake install

Gem Installation

gem install pagination_scope

Features/Problems

Synopsis

In your model class,

class Post
  include PaginationScope

In your controller class,

class PostsController < ApplicationController
  def index
    @posts = Post.not_deleted.paginate(params[:page], 10)

In your view html.erb,

<%= paginate @posts %>
Author

Genki Takiuchi <[email protected]>

Copyright

Copyright © 2008 Genki Takiuchi

License