I\'m using rails 2.3.8
my error:
undefined method `will_paginate\' for #
in environment.rb:
Disable the auto-requiring of will_paginate:
# Gemfile
gem "will_paginate", "~> 2.3.15", :require => nil
And require it yourself, manually, at the end of environment.rb:
# end of environment.rb
require "will_paginate"
The thing is, if you require will_paginate before the Rails::Initializer
call, it might not boostrap properly.