# Find\_with\_ferret doesn't return a SearchResults objetc

**URL:** <https://www.ruby-forum.com/t/find-with-ferret-doesnt-return-a-searchresults-objetc/191756>\
**Category:** Rails\
**Created:** [July 17, 2010, 7:25pm UTC](https://www.ruby-forum.com/t/find-with-ferret-doesnt-return-a-searchresults-objetc/191756 "2010-07-17T19:25:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 17, 2010, 7:25pm UTC](https://www.ruby-forum.com/t/find-with-ferret-doesnt-return-a-searchresults-objetc/191756/1 "2010-07-17T19:25:03Z")

</div>

Hi folks,

I have the following statement in my ruby class  
@users = User.find\_with\_ferret(query, { :page =\> params[:page],  
:per\_page =\> 10 }),

But once I run the program, @users.class gives me an Array instead of  
ActsAsFerret::SearchResults. Is that normal ?

---

<div class="post-metadata">

**Author:** ![mamadoutoure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Post date:** [July 18, 2010, 12:50am UTC](https://www.ruby-forum.com/t/find-with-ferret-doesnt-return-a-searchresults-objetc/191756/2 "2010-07-18T00:50:57Z")

</div>

Mamadou TourÃ© wrote:

> Hi folks,
> 
> I have the following statement in my ruby class  
> @users = User.find\_with\_ferret(query, { :page =\> params[:page],  
> :per\_page =\> 10 }),
> 
> But once I run the program, @users.class gives me an Array instead of  
> ActsAsFerret::SearchResults. Is that normal ?

I dont even have the config/aaf.rb file in my project tree . Is that  
normal ?
