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 (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install genki-pagination_scope
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
.rake_tasks | ||
| |
ChangeLog | ||
| |
README | ||
| |
Rakefile | Fri Mar 20 22:10:13 -0700 2009 | |
| |
lib/ | Wed Apr 01 09:19:30 -0700 2009 | |
| |
pagination_scope.gemspec | ||
| |
rails/ | ||
| |
spec/ | Wed Apr 01 09:19:30 -0700 2009 |
= 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::












