Paginating a find...

Paul Nichols wrote:

:per_page => 2, :conditions => ['run_id=?', @run.id]

Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id

That's the standard "whiny" error message you get when you call nil.id.

id is a (deprecated) member of Object, and an important member of any ActiveRecord model. So one of your models is nil - probably @run.

Tip: better delimiters and linefeeds would have helped you spot the error faster:

    @fails_pages, @most_recent_fails =         paginate(             :most_recent_fails,             :per_page => 2,             :conditions => ['run_id=?', @run.id])