On Jul 12, 4:59 pm, Scott LaBounty <[email protected]> wrote: > From the documentation, it looks like this should work: > > page_books = Book.paginate(1, 2) > > where Book is a model and I'm trying to start on page 1 with 2 rows per > page. What I get though is: > > undefined method `paginate' for #<Sequel::SQLite::Dataset: "SELECT * FROM > `books`"> > > Am I using it wrong? Is there something additional to require besides > sequel?
paginate was moved to an extension in 3.0. Use: Sequel.extension :pagination Jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" 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/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
