# Paginator gem

**URL:** <https://www.ruby-forum.com/t/paginator-gem/128459>\
**Category:** Rails\
**Created:** [February 7, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/paginator-gem/128459 "2008-02-07T21:41:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 7, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/paginator-gem/128459/1 "2008-02-07T21:41:13Z")

</div>

Not sure if the is the right place to ask about gems; point me to the  
right place if this is not.

I installed the paginator (1.1.0) gem but my application can’t seem to  
find it. I’m getting:

NameError in NodeController#index

uninitialized constant Paginator

RAILS\_ROOT: /home/wucolin/src/netmap-rails  
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/  
dependencies.rb:266:in `load_missing_constant' /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:453:in`const\_missing’  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/  
dependencies.rb:465:in `const_missing' app/controllers/node_controller.rb:7:in`index’

Here’s the gem list output:  
\*\*\* LOCAL GEMS \*\*\*

actionmailer (2.0.2)  
actionpack (2.0.2)  
actionwebservice (1.2.6)  
activerecord (2.0.2)  
activeresource (2.0.2)  
activesupport (2.0.2)  
capistrano (2.1.0)  
cgi\_multipart\_eof\_fix (2.5.0)  
daemons (1.0.9)  
fastthread (1.0.1)  
gem\_plugin (0.2.3)  
highline (1.4.0)  
hoe (1.5.0)  
mongrel (1.1.3)  
mongrel\_cluster (1.0.5)  
mysql (2.7)  
needle (1.3.0)  
net-sftp (1.1.0)  
net-ssh (1.1.2)  
paginator (1.1.0)  
rails (2.0.2)  
rake (0.8.1)  
rubyforge (0.4.4)  
rubygems-update (1.0.1)  
snmp (1.0.2)  
sources (0.0.1)  
termios (0.9.4)

Is there a better way to paginate than this gem?

Thanks.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 8, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/paginator-gem/128459/2 "2008-02-08T12:40:23Z")

</div>

did you add this to youtr initializers/environment.rb?  
require ‘paginator’

Generally i yould suggest to rather use the will\_paginate plugin …

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 8, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/paginator-gem/128459/3 "2008-02-08T20:38:24Z")

</div>

Shouldn’t the gem installer do this?

I decided to give paginating\_find a shot. So far it’s working great.
