NameError uninitialized constant Ferret::Index::FieldInfos

Hi Everyone,
I’ve a RoR application. I am trying to build full text search capability
into it. I installed Ferret. After that I installed the act_as_ferret
plugin. I’ve also put the acts_as_ferret inside the .rb file .
I’m using the find_by_contents to get the search results.

I’m getting the following error. I’ve no clue and I didn’t find any
previous posts discussing this issue . I’ll really appreciate if any of
you can point out what I might be doing wrong.

NameError in MaintenanceController#search

uninitialized constant Ferret::Index::FieldInfos

RAILS_ROOT: script/…/config/…
Application Trace | Framework Trace | Full Trace

vendor/rails/activesupport/lib/active_support/dependencies.rb:260:in
load_missing_constant' vendor/rails/activesupport/lib/active_support/dependencies.rb:431:inconst_missing’
vendor/plugins/acts_as_ferret/lib/class_methods.rb:170:in
rebuild_index' vendor/plugins/acts_as_ferret/lib/class_methods.rb:223:increate_index_instance’
vendor/plugins/acts_as_ferret/lib/class_methods.rb:216:in ferret_index' vendor/plugins/acts_as_ferret/lib/class_methods.rb:381:infind_id_by_contents’
vendor/plugins/acts_as_ferret/lib/class_methods.rb:248:in
find_by_contents' app/controllers/maintenance_controller.rb:99:insearch’

On Mon, Nov 06, 2006 at 04:39:10AM +0100, Navneet Aron wrote:

NameError in MaintenanceController#search

uninitialized constant Ferret::Index::FieldInfos

looks like aaf can’t find Ferret. What happens if you try to
require ‘ferret’
in script/console ?

Jens


webit! Gesellschaft für neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer [email protected]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66