Navneet Aron
2006-Nov-06 03:39 UTC
[Ferret-talk] 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 <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/.
Jens Kraemer
2006-Nov-06 08:31 UTC
[Ferret-talk] NameError uninitialized constant Ferret::Index::FieldInfos
On Mon, Nov 06, 2006 at 04:39:10AM +0100, Navneet Aron wrote:> 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::FieldInfoslooks 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 kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66