Say if I have a set of objects contained in @set. Each of these objects has a description method which will return some text that I want to display on individual pages. How do I use will_paginate to paginate this?
The examples I’ve seen so far such as:
@articles = Article.paginate :page => params[:page]
look like they are referring to all Article objects.
Assuming your model is called
SomeObject, thewill_paginatesyntax is similar to that of ActiveRecord’s.find():Check the documentation for more.