I am doing something wrong (find_by_content with find_option

Hi,

i am a real ruby on rails and ferret beginner.

I am trying to do a search with this:

Link.find_by_contents(“teen”, {}, {:conditions => “imagecount > 0” })

Limit options are removed, so it should display everything.

So i get this:

=> #<ActsAsFerret::SearchResults:0xb5b34588 @total_hits=170,
@results=[]>

In the Database there are enough entries for the query teen with more
than 0 images. It seems it gets 179 hits. But why no results?

Lukas

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