Ferret Shared Index Issue


A really strange one.

I have the following shared index initialized on startup

:models => {
Product => {:fields => [:name, :desc]},
HostApplication => {:fields => [:name, :desc]}
:ferret => {
:default_fields => [:name, :desc]

In the console Product.find_with_ferret(‘express’) returns around 20
results which i expect.

When i run under the server, the same code
Product.find_with_ferret(‘express’) returns an error message undefined
method `find_with_ferret’ for #Class:0x63d8208

Ive no idea what is wrong here. Ive tried everything, rebuild indexes,
restart server etc etc etc but cant see why this wont work?

Anyone got a clue?


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