Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails doesn't boot with gem 'bootstrap-will_paginate' AND 'mongoid' #16

Open
andey opened this issue Oct 10, 2013 · 2 comments
Open

Rails doesn't boot with gem 'bootstrap-will_paginate' AND 'mongoid' #16

andey opened this issue Oct 10, 2013 · 2 comments

Comments

@andey
Copy link

andey commented Oct 10, 2013

rails server
/home/andey/.rvm/gems/ruby-2.0.0-p247/gems/leshill-will_paginate-2.3.11/lib/will_paginate.rb:78:in `extend': wrong argument type Class (expected Module) (TypeError)
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/leshill-will_paginate-2.3.11/lib/will_paginate.rb:78:in `<module:Deprecation>'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/leshill-will_paginate-2.3.11/lib/will_paginate.rb:77:in `<module:WillPaginate>'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/leshill-will_paginate-2.3.11/lib/will_paginate.rb:11:in `<top (required)>'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /home/andey/Dropbox/Projects/bestofama/config/application.rb:6:in `<top (required)>'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

the gem 'will_paginate' itself has no complications with mongoid.

@yrgoldteeth
Copy link
Owner

I'm guessing leshill-will_paginate-2.3.11 is a required version of will_paginate to work with mongoid perhaps? Not sure what's happening here, I'll take a look if I get some time.

@yrgoldteeth
Copy link
Owner

Confirmed this with a fresh rails app, adding only bootstrap-will_paginate and mongoid to the Gemfile. It definitely installs just the will_paginate gem that is a dependency of bootstrap-will_paginate and then installs leshill-will_paginate v 2.3.11 for some reason as of yet unknown to me.

I don't really do mongo if I can help it, but I'll take a look as soon as I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants