Paul Nichols wrote:
def summary @most_recent_fails = Run.find(:all, :order => 'id DESC') @fails_pages, @most_recent_fails = paginate :most_recent_fails, :per_page => 2, :conditions => ['run_id=?', @run.id] end
Notice there's a will_paginate plugin which seems to be the preferred way to do pagination these days.