# Paginator prob

**URL:** <https://www.ruby-forum.com/t/paginator-prob/148091>\
**Category:** Rails\
**Created:** [September 9, 2008, 6:19am UTC](https://www.ruby-forum.com/t/paginator-prob/148091 "2008-09-09T06:19:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tashfeen.ekram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Post date:** [September 9, 2008, 6:19am UTC](https://www.ruby-forum.com/t/paginator-prob/148091/1 "2008-09-09T06:19:18Z")

</div>

i am trying to implement the pagination solution for ferret provided  
at the following link:  
[http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial#what](http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial#what)

i am getting the following error:  
uninitialized constant ApplicationController::Paginator

here is the call to paginator:  
pages = Paginator.new self, size, options[:per\_page], (params[:page]||  
1)

i echoed all of the inputs and they are not nil. i am not sure where  
the errror is coming from.

i thought it was bc i did not have paginayor gem but i installed it  
and i stil am getting the same error

---

<div class="post-metadata">

**Author:** ![tashfeen.ekram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Post date:** [September 9, 2008, 10:29am UTC](https://www.ruby-forum.com/t/paginator-prob/148091/2 "2008-09-09T10:29:56Z")

</div>

I don’t see, why you want to use this Paginator thing (whatever  
exactly it is)  
Ferret doesn’t need it for pagination, you can give it the per\_page &  
page  
options and that’s all to it.

btw: Sphinx would most likely do a better job. Ferret is nice, until  
you  
try to make it run in production.

---

<div class="post-metadata">

**Author:** ![tashfeen.ekram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Post date:** [September 9, 2008, 10:39am UTC](https://www.ruby-forum.com/t/paginator-prob/148091/3 "2008-09-09T10:39:22Z")

</div>

On Sep 9, 5:18 am, “tashfeen.ekram” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i echoed all of the inputs and they are not nil. i am not sure where  
> the errror is coming from.
> 
> i thought it was bc i did not have paginayor gem but i installed it  
> and i stil am getting the same error

That code looks like it’s trying to use the old classic\_pagination  
code (which was pushed into a plugin of the same name)

Fred

---

<div class="post-metadata">

**Author:** ![tashfeen.ekram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Post date:** [September 9, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/paginator-prob/148091/4 "2008-09-09T19:40:03Z")

</div>

On Sep 9, 4:23 pm, “Russell N.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> veering off topic… what does “Ferret is nice, until you try to make it run  
> in production.” mean exactly? i’ve seen mention that ferret has problems in  
> production but i don’t understand what other use you’d want it for. just to  
> develop an idea but never put into production?

exactly the point. you develop an idea, want to run it in  
production and have a hell of a time. I’ve used ferret only in two  
projects. Project one was very simple and we had no problems.  
The other project was a bit more complex, no problems in  
development, but when we put it in production, the index update  
failed totally, missing to add things to the index, even after  
full reindexing the whole dataset. We didn’t give it too much  
time though, so such issues may be solvable.  
But to switch the whole thing to sphinx was a matter of a day or two  
(with no previous knowledge of Sphinx) and it worked in production  
as in development right away. Ok, a bit more work to setup everything,  
but since then running (several months now) without the least trouble.

---

<div class="post-metadata">

**Author:** ![tashfeen.ekram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Post date:** [September 9, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/paginator-prob/148091/5 "2008-09-09T16:24:47Z")

</div>

veering off topic… what does “Ferret is nice, until you try to make it  
run  
in production.” mean exactly? i’ve seen mention that ferret has problems  
in  
production but i don’t understand what other use you’d want it for. just  
to  
develop an idea but never put into production?

agreed on sphinx being a better solution though. my recommendation would  
be  
thinking sphinx.

RSL

---

<div class="post-metadata">

**Author:** ![tashfeen.ekram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Post date:** [September 10, 2008, 6:13am UTC](https://www.ruby-forum.com/t/paginator-prob/148091/6 "2008-09-10T06:13:19Z")

</div>

hmmmm…

so, do more people use sphinx for full text search?

i was just more comfortable using a lucence ruby port since lucene is  
so well known

---

<div class="post-metadata">

**Author:** ![tashfeen.ekram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Post date:** [September 10, 2008, 6:32am UTC](https://www.ruby-forum.com/t/paginator-prob/148091/7 "2008-09-10T06:32:01Z")

</div>

here is useful discussion on the issue:  
[https://groups.google.com/group/rubyonrails-deployment/browse\_thread/thread/980fe7cb20cb97dd/bc798b52f439020c](https://groups.google.com/group/rubyonrails-deployment/browse_thread/thread/980fe7cb20cb97dd/bc798b52f439020c)
