undefined method `paginate'
gauravmc opened this issue · comments
I'm using Rails 3.2.1. Not sure what is causing the error undefined method 'paginate' for #<Class:0x007fd95430ddf8>
. Restarted the server, rechecked everything, still not working.
Working fine for me on 3.2.1 -- will it work on your app with just the will_paginate gem installed and not this gem (obviously the styling would be wrong)?
yes. it works correctly with only will_paginate (3.0.2). styling sucks of course. :) any tips on how i can find the cause for that kind of error?
I added require 'will_paginate'
to config/environment.rb and the problem got solved. I still don't get why the default gem doesn't work as expected. Hope you figure it out soon. :)
That's so odd. I added the require line into the main lib file, where it probably should have been all along. Version 0.0.6 is released with that added.