Paginator

hey i m getting an error wen i do da paginating stuff..can u help meh? n it says ActionController does not contain 'super' method.. bt books say its valid..y?

Error: uninitialized constant ApplicationController::Paginator

RAILS_ROOT: /root/knowledge_engine Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:105:in `const_missing' /root/knowledge_engine/app/controllers/application_controller.rb:45:in `paginate' /root/knowledge_engine/app/controllers/posts_controller.rb:7:in `index'

hey i m getting an error wen i do da paginating stuff…can u help meh?

n it says ActionController does not contain ‘super’ method… bt books

say its valid…y?

Error:

uninitialized constant ApplicationController::Paginator

RAILS_ROOT: /root/knowledge_engine

Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:105:in

`const_missing’

/root/knowledge_engine/app/controllers/application_controller.rb:45:in

`paginate’

/root/knowledge_engine/app/controllers/posts_controller.rb:7:in `index’

Hi, do you have the paginator gem installed? If not, then you’ll need to

do the following:

using RVM:

gem install paginator

Otherwise, you may need to do the following:

sudo gem install paginator

Next, did you add 'config.gem ‘paginator’ to your environment.rb file? If not, you

should do so now. Also, I would recommend reviewing the docs if you haven’t done so here:

http://paginator.rubyforge.org/

Lastly, I would recommend using ‘will_paginate’ gem instead of the ‘paginator’ gem for pagination.

Good luck,

-Conrad