It's looking for a will paginate style collection. (That's one I think should be automatically ignored personally. If there's no pagination information, just ignore the pagination parts of a default index page.)
Add on paginate(:page => (params[:page] or 1), :per_page => 10) to the end of your method call to get it running quickly (least it should work...) On Aug 10, 3:05 pm, Skott Klebe <[email protected]> wrote: > 1. Is there any doc on it? > Trying to use table-plus according to the example in Agility, the > section on which ends with the note, > "(To do – explain how that works!)" > > 2. When I implement the index action in my controller, I get an > 'undefined method - total_pages' error. > With code modeled on what's in the Agility sample, or with MyModel.find(:all) > > undefined method `total_pages' for #<Array:0xc55b12> > > Any ideas? > Thanks, > SK > > -- > Skott Klebe > [email protected] -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
