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 .