Paginator gem

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

dependencies.rb:266:in load_missing_constant' /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:453:inconst_missing’
dependencies.rb:465:in const_missing' app/controllers/node_controller.rb:7:inindex’

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?


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

Generally i yould suggest to rather use the will_paginate plugin …

Shouldn’t the gem installer do this?

I decided to give paginating_find a shot. So far it’s working great.