# Will\_paginate

**URL:** <https://www.ruby-forum.com/t/will-paginate/174780>\
**Category:** Rails\
**Created:** [September 2, 2009, 4:16am UTC](https://www.ruby-forum.com/t/will-paginate/174780 "2009-09-02T04:16:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fireflyman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/43a26b/32.png) [@fireflyman](https://www.ruby-forum.com/u/fireflyman)\
**Post date:** [September 2, 2009, 4:16am UTC](https://www.ruby-forum.com/t/will-paginate/174780/1 "2009-09-02T04:16:54Z")

</div>

## Hi,everybody I write a code like follow,the question was “paginate” has been drop until the rails 2.0,now we use “will\_paginate” to replace it.But I don’t know how to change my code to let it suitable.

## def index @page\_title = “Book List” @book\_pages,@books = Book.paginate :books, :per\_page =\> 10, :include =\> [:authors, :publishers], :order =\> “books.id desc”

So,I want may be somebody can help .

---

<div class="post-metadata">

**Author:** ![fireflyman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/43a26b/32.png) [@fireflyman](https://www.ruby-forum.com/u/fireflyman)\
**Post date:** [September 2, 2009, 6:10pm UTC](https://www.ruby-forum.com/t/will-paginate/174780/2 "2009-09-02T18:10:22Z")

</div>

Sure, read this page for the info:

> **[GitHub - mislav/will\_paginate: Pagination library for Rails and other Ruby...](https://github.com/mislav/will_paginate/tree/master)**
>
> master

---

<div class="post-metadata">

**Author:** ![fireflyman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/43a26b/32.png) [@fireflyman](https://www.ruby-forum.com/u/fireflyman)\
**Post date:** [September 3, 2009, 3:40am UTC](https://www.ruby-forum.com/t/will-paginate/174780/3 "2009-09-03T03:40:14Z")

</div>

Thanks,I had deal with the problem .

On Thu, Sep 3, 2009 at 12:10 AM, Ar Chron  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> Sure, read this page for the info:
> 
> ## [GitHub - mislav/will\_paginate: Pagination library for Rails and other Ruby applications](http://github.com/mislav/will_paginate/tree/master)
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Sons of Gondor, of Rohan, my brothers!  
I see in your eyes the same fear that would take the heart of me.  
A day may come when the courage of men fails when we forsake our friends  
and  
break all bonds of fellowship.  
But this is not this day.  
And hour of wolves and shattered shields when the age of Men comes  
crashing  
down. But this is not this day!  
This day we fight! By all that you hold dear on this good earth, I bid  
you  
stand! Men of the West!
