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 .
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---