Hi,
I have three models: Comatose::Page, Article and Product.
In all of them, store_class_name is set to true.
Now, when i do:
results = Comatose::Page.multi_search("*", [Article,Product], options)
I get:
wrong constant name Comatose::Page
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:438:in
`const_get'
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:438:in
`multi_search'
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:460:in
`id_multi_search'
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/multi_index.rb:28:in
`search_each'
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/multi_index.rb:28:in
`search_each'
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:457:in
`id_multi_search'
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:437:in
`multi_search'
#{RAILS_ROOT}/app/controllers/application.rb:44:in `run_search'
#{RAILS_ROOT}/app/controllers/application.rb:68:in `full_text_search'
#{RAILS_ROOT}/app/controllers/search_controller.rb:16:in `index'
-e:4:in `load'
-e:4
The ferret index files include the name Comatose::Page and are put in
index/developement/comatose/page directory.
Any idea why I might get that error?
I dont get it with results = Comatose::Page.find_by_contents(q, options)
Best regards,
Tom
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk