On Mon, Oct 09, 2006 at 11:31:47PM +0200, wc wrote:
[..]
> Here is the trace
>  User.multi_search("foo",[Model1,Model2])
> TypeError: nil is not a symbol
>         from
> ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/class_methods.rb:412:in
> `const_get'

it seems your indexes don't contain the class_name field for all your
indexed objects. 

> both my models call:
> 
> acts_as_ferret :store_class_name => true

you should have all *three* models (User, Model1 and Model2) using the
:store_class_name option.

Then, after rebuilding your indexes, multi_search should work fine.

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
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to