# Find\_with\_ferret issue

**URL:** <https://www.ruby-forum.com/t/find-with-ferret-issue/177939>\
**Category:** Rails\
**Created:** [October 26, 2009, 11:14pm UTC](https://www.ruby-forum.com/t/find-with-ferret-issue/177939 "2009-10-26T23:14:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubyonRails\_newbie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Post date:** [October 26, 2009, 11:14pm UTC](https://www.ruby-forum.com/t/find-with-ferret-issue/177939/1 "2009-10-26T23:14:05Z")

</div>

Hi All,

I’m implementing the ferret search engine on my railspace project.

In my User and Info model, I have line that reads:

acts\_as\_ferret :fields =\> [‘username’, ‘email’]

This initially generates a find\_by\_contents which is added to the  
community contoller:

@users = User. find\_by\_contents(query, :limit =\> :all)

THis returned a method error, and after some digging, it turns out  
that the find\_by\_contents is not replaced with:

@users = User.find\_with\_ferret(query, :limit =\> :all)

HOWEVER… With this in place, the book says the search should work.  
But for some reason, I click search, and nothing is returned…

Has anyone else had this issue? and why is nothing been returned in  
the browser?

---

<div class="post-metadata">

**Author:** ![RubyonRails\_newbie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Post date:** [October 28, 2009, 4:44am UTC](https://www.ruby-forum.com/t/find-with-ferret-issue/177939/2 "2009-10-28T04:44:25Z")

</div>

see in console is model firing acts as ferret or not…if yes then again  
install acts as ferret.

On Tue, Oct 27, 2009 at 4:02 PM, RubyonRails\_newbie \<
