On Jul 13, 3:00 pm, Scott LaBounty <[email protected]> wrote: > Jeremy, > > Thanks, that did it. > > OK, if I haven't tried your patience too much yet ... While I was trying to > get this working, I realized that Ramaze itself has a paginate type function > (looks like it may have been modeled on Sequel). Is there a reason to use > one over the other? The Ramaze one works on arrays, so I'm doing something > like @books = paginate(Book.select.order(:title).all). This seems to work > fine for what I'm doing, but I don't always know all the facts.
The Ramaze pagination feature is generic, and probably should not be used in production environments with large datasets. Because it requires an array, you would need to select all records from the dataset instead of only the records you need to display that page. 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 -~----------~----~----~----~------~----~------~--~---
