Find_with_ferret issue

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?

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 <

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