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 <model>.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:in 
`const_missing'
vendor/plugins/acts_as_ferret/lib/class_methods.rb:170:in 
`rebuild_index'
vendor/plugins/acts_as_ferret/lib/class_methods.rb:223:in 
`create_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:in 
`find_id_by_contents'
vendor/plugins/acts_as_ferret/lib/class_methods.rb:248:in 
`find_by_contents'
app/controllers/maintenance_controller.rb:99:in `search'


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to