This should be easy, and for some reason I'm missing something.

    class User < Sequel::Model
    end

Then:

    User.paginate(1,10)

I get:

    undefined method `paginate' for #<Sequel::MySQL::Dataset: "SELECT
* FROM `users`">

So I figured, maybe I need to load a plugin.  I looked here:

    http://sequel.rubyforge.org/plugins.html

And "pagination" is listed as an extension, so I tried this:

irb(main):002:0> Sequel::Model.plugin :pagination
LoadError: no such file to load -- sequel_pagination
        from /usr/playerconnect-stack-2009e/lib/ruby/gems/1.9.1/gems/
sequel-3.5.0/lib/sequel/model/plugins.rb:80:in `require'
        from /usr/playerconnect-stack-2009e/lib/ruby/gems/1.9.1/gems/
sequel-3.5.0/lib/sequel/model/plugins.rb:80:in `rescue in
plugin_module'
        from /usr/playerconnect-stack-2009e/lib/ruby/gems/1.9.1/gems/
sequel-3.5.0/lib/sequel/model/plugins.rb:77:in `plugin_module'
        from /usr/playerconnect-stack-2009e/lib/ruby/gems/1.9.1/gems/
sequel-3.5.0/lib/sequel/model/plugins.rb:31:in `plugin'
        from (irb):2
        from /usr/playerconnect-stack-2009e/bin/irb:12:in `<main>'

No luck.  I couldn't find how to "activate" pagination in these rdoc
either:

    
http://sequel.rubyforge.org/rdoc-plugins/files/lib/sequel/extensions/pagination_rb.html
    http://sequel.rubyforge.org/rdoc/classes/Sequel/Dataset/Pagination.html

Thanks,
Nate

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to