I used tha pgination feature in Rails 2.0.2. It worked fairly well.
Include will_paginate plugin in vendor folder.
ANd write the code in the controller from where you are retrieving the
table data from the datbase.
e.g. @peopledata = Person.paginate(:page => params[:page], :conditions
If you want to set the number of list(e.g. 5) to be displayed per page
Include in model…person.rb
In view adda line
<% will_paginate @peopleData %>
Pagination will start working with next and previous.
On Fri, Mar 28, 2008 at 6:41 AM, [email protected] [email protected]