Jeremy, Sorry to be so slow, but where does the Sequel.extension :pagination line go? In the method where I use it? In the class where it's used? Somewhere else?
Thanks again, Scott On Sun, Jul 12, 2009 at 10:09 PM, Jeremy Evans <[email protected]>wrote: > > 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 > > > -- Scott http://steamcode.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
