This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Jan 22 09:30:45 -0800 2009 | |
| |
.rake_tasks | Thu Aug 14 05:33:17 -0700 2008 | |
| |
ChangeLog | Sat Sep 27 11:49:16 -0700 2008 | |
| |
README | Thu Aug 14 06:05:43 -0700 2008 | |
| |
Rakefile | Fri Mar 20 22:10:13 -0700 2009 | |
| |
lib/ | Wed Apr 01 09:19:30 -0700 2009 | |
| |
pagination_scope.gemspec | Wed Apr 01 09:19:30 -0700 2009 | |
| |
rails/ | Fri Mar 20 23:36:22 -0700 2009 | |
| |
spec/ | Wed Apr 01 09:19:30 -0700 2009 |
README
= 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 %>
== Copyright
Author:: Genki Takiuchi <genki@s21g.com>
Copyright:: Copyright (c) 2008 Genki Takiuchi
License::







