# Acts as ferret

**URL:** <https://www.ruby-forum.com/t/acts-as-ferret/150486>\
**Category:** Rails\
**Created:** [October 9, 2008, 2:01am UTC](https://www.ruby-forum.com/t/acts-as-ferret/150486 "2008-10-09T02:01:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deadinplastic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d2c977/32.png) [@deadinplastic](https://www.ruby-forum.com/u/deadinplastic)\
**Post date:** [October 9, 2008, 2:01am UTC](https://www.ruby-forum.com/t/acts-as-ferret/150486/1 "2008-10-09T02:01:25Z")

</div>

So i have acts as ferret working nicely except for one problem. I can’t  
for the life of me filter results on a parent model!  
For example we have a tree that goes  
Account-\>User-\>Article

Article.find\_by\_contents(“hello”) works great but I try something like  
Article.find\_by\_contents(“hello”, {}, {:include=\>:users,  
:conditions=\>[“users.account\_id = ?”])

gives a bunch of errors, its clearly not including the users

---

<div class="post-metadata">

**Author:** ![deadinplastic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d2c977/32.png) [@deadinplastic](https://www.ruby-forum.com/u/deadinplastic)\
**Post date:** [October 9, 2008, 2:05am UTC](https://www.ruby-forum.com/t/acts-as-ferret/150486/2 "2008-10-09T02:05:23Z")

</div>

Hi,

I know that it’s not your question, but alot of people seem to have  
problems with Ferret in production. Might I suggest to switch to  
Shpinx using ThinkingSphinx plugin before it’s too late? 🙂

As for your question, I don’t know enough about Ferret to help you,  
I’m sorry.

---

<div class="post-metadata">

**Author:** ![deadinplastic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d2c977/32.png) [@deadinplastic](https://www.ruby-forum.com/u/deadinplastic)\
**Post date:** [October 9, 2008, 2:55am UTC](https://www.ruby-forum.com/t/acts-as-ferret/150486/3 "2008-10-09T02:55:55Z")

</div>

DavidPaquet wrote:

> Hi,
> 
> I know that it’s not your question, but alot of people seem to have  
> problems with Ferret in production. Might I suggest to switch to  
> Sphinx using ThinkingSphinx plugin before it’s too late? 🙂  
> Bloody brilliant David!  
> The ThinkingSphinx quickstart had the EXACT example i needed. After  
> re-reading sphinx install instructions (forgot the --with-pgsq option),  
> setup was a breeze and it works perfectly!
