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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
did you add this to youtr initializers/environment.rb? require ''paginator'' Generally i yould suggest to rather use the will_paginate plugin ... On 7 Feb., 21:39, "gee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <gee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Shouldn''t the gem installer do this? I decided to give paginating_find a shot. So far it''s working great. On Feb 8, 6:39 am, Thorsten <duple...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> did you add this to youtr initializers/environment.rb? > require ''paginator'' > > Generally i yould suggest to rather use the will_paginate plugin ... >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---