Will_paginate

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 .

Sure, read this page for the info:

Thanks,I had deal with the problem .

On Thu, Sep 3, 2009 at 12:10 AM, Ar Chron
[email protected]wrote:

Sure, read this page for the info:

GitHub - mislav/will_paginate: Pagination library for Rails and other Ruby applications

Posted via 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!