# Paginator

**URL:** <https://www.ruby-forum.com/t/paginator/182638>\
**Category:** Rails\
**Created:** [January 31, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/paginator/182638 "2010-01-31T19:12:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manish\_belsare](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@manish\_belsare](https://www.ruby-forum.com/u/manish_belsare)\
**Post date:** [January 31, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/paginator/182638/1 "2010-01-31T19:12:05Z")

</div>

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’

---

<div class="post-metadata">

**Author:** ![manish\_belsare](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@manish\_belsare](https://www.ruby-forum.com/u/manish_belsare)\
**Post date:** [February 1, 2010, 9:18am UTC](https://www.ruby-forum.com/t/paginator/182638/2 "2010-02-01T09:18:11Z")

</div>

On Sun, Jan 31, 2010 at 1:12 PM, Manish B.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> /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/](http://paginator.rubyforge.org/)

[http://paginator.rubyforge.org/](http://paginator.rubyforge.org/)Lastly, I would recommend using  
‘will\_paginate’ gem instead of the ‘paginator’ gem for pagination.

Good luck,

-Conrad
