mislav/will_paginate — Issue #212: undefined method `paginate' (after upgrade)
Author: msp
Created: 2011-12-15 12:32:45+00:00
State: open

Hi

I'm in the process of upgrading a legacy 2.3 app.

$ bundle show rails
/Users/matt/.rvm/gems/ruby-1.9.2-p290@dis11/gems/rails-3.0.11

$ bundle show will_paginate
/Users/matt/.rvm/gems/ruby-1.9.2-p290@dis11/gems/will_paginate-3.0.2

Loading development environment (Rails 3.0.11)
ruby-1.9.2-p290 :001 > defined? WillPaginate
=> "constant"

ruby-1.9.2-p290 :002 > ActiveRecord::Base.respond_to? :paginate
=> false

Any idea what's wrong? The only config for Rails 3 is inclusion in the gemfile right?
gem 'will_paginate'

It looks like it's running the railtie include but I didn't get any deeper than that:

if defined?(Rails::Railtie)
require 'will_paginate/railtie'
else
...

Cheers

Matt