Find_with_ferret doesn't return a SearchResults objetc

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 ?

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 ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs