Re: Paginator

Conrad Taylor
Sun, 31 Jan 2010 18:56:55 -0000

On Sun, Jan 31, 2010 at 1:12 PM, Manish Belsare
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:

> 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/

<http://paginator.rubyforge.org/>Lastly, I would recommend using
''will_paginate'' gem instead of the
''paginator'' gem for pagination.

Good luck,

-Conrad


> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at