Coder Social home page Coder Social logo

Comments (5)

mislav avatar mislav commented on May 21, 2024

Is that a really old Rails version? As far as I know, returning was in Rails since the very early versions. Can you reproduce the issues in a blank Rails app that's of the same version as this one?

from will_paginate.

janprill avatar janprill commented on May 21, 2024

I've got the same issue in a freshly set up edge rails3 application using the current rails3-branch auf will_paginate:

rake --tasks --trace
(in /Users/janprill/Documents/workspace/nutrition2)
rake aborted!
undefined method returning' for WillPaginate:Module /Users/janprill/.bundle/ruby/1.9.1/gems/will_paginate-2.3.14/lib/will_paginate.rb:39:inenable_activerecord'
/Users/janprill/.bundle/ruby/1.9.1/gems/will_paginate-2.3.14/lib/will_paginate.rb:88:in <top (required)>' /opt/local/lib/ruby/gems/1.9.1/gems/bundler-0.9.20/lib/bundler/runtime.rb:48:inrequire'
/opt/local/lib/ruby/gems/1.9.1/gems/bundler-0.9.20/lib/bundler/runtime.rb:48:in block (2 levels) in require' /opt/local/lib/ruby/gems/1.9.1/gems/bundler-0.9.20/lib/bundler/runtime.rb:43:ineach'
/opt/local/lib/ruby/gems/1.9.1/gems/bundler-0.9.20/lib/bundler/runtime.rb:43:in block in require' /opt/local/lib/ruby/gems/1.9.1/gems/bundler-0.9.20/lib/bundler/runtime.rb:42:ineach'
/opt/local/lib/ruby/gems/1.9.1/gems/bundler-0.9.20/lib/bundler/runtime.rb:42:in require' /opt/local/lib/ruby/gems/1.9.1/gems/bundler-0.9.20/lib/bundler.rb:93:ingem_require'
/Users/janprill/Documents/workspace/nutrition2/config/application.rb:7:in <top (required)>' /Users/janprill/Documents/workspace/nutrition2/Rakefile:4:inrequire'
/Users/janprill/Documents/workspace/nutrition2/Rakefile:4:in <top (required)>' /opt/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:inload'
/opt/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in raw_load_rakefile' /opt/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2017:inblock in load_rakefile'
/opt/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /opt/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2016:inload_rakefile'
/opt/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2000:in block in run' /opt/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling'
/opt/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:in run' /opt/local/bin/rake:31:in

'

Cheers, Jan

from will_paginate.

mislav avatar mislav commented on May 21, 2024

Your stack trace clearly comes comes from the will_paginate 2.3.14 gem, not edge "rails3" branch from git. The 2.3.x version isn't compatible with Rails 3, you have to use the branch.

from will_paginate.

janprill avatar janprill commented on May 21, 2024

ups. sorry. will check this. thanks, Jan

from will_paginate.

mislav avatar mislav commented on May 21, 2024

Considering this invalid and closing

from will_paginate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.