Paginate

Pål Bergström wrote:

How can you control what to list and what not to in a paginate?

@content_pages, @contents = paginate :contents, :per_page => 10

And how do I access any related data?

-- Posted via http://www.ruby-forum.com/.

you can pass an :order or :conditions to the paginate function to limit your results or sort them. The results are stored in the @contents instance variable

_Kevin