I posted this on the railsforum too before I discovered this - but it seems the function paginate is not being recognized - but the rest are (eg, paginate_by_sql). To remedy the issue i did 2 things:
I had to put this extra line in lib/will_paginate.rb
ActiveRecord::Base.extend(WillPaginate::Finder::ClassMethods) or else the additional class methods won't be found.
Next, i change the function name "paginate" to "paginate_result" and that seemed to do the trick.
Perhaps a name clash or something, I would be happy to discover the root of this problem and a possible solution if someone can give suggestions.
What version of will_paginate, what version of Rails, how are you loading the will_paginate library, what plugins do you have installed?
actually i tried everything - as a plugin, gem install via both git and gemcutter. All latest one - 2.3.11.
will_paginate hooks into ActiveRecord like you see here: http://github.com/mislav/will_paginate/blob/master/lib/will_paginate.rb#L87-90
it bails out if it sees that AR::Base already has a paginate method. Maybe you have some plugin that adds a paginate method?
that's what i suspect, is there any way to trace this ?
Simple. Either paste the list of plugins/gems you use, or don't load will_paginate at all and open script/console to check if ActiveRecord::Base.respond_to? :paginate is true.
Closing; hope this was resolved