wc wrote:
> Jens Kraemer wrote:
>> 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
>
> I have :store_class_name => true in all the models, and I search using
> model1.multi_search("foo",[Model1,Model2]) it works so long as there are
> no matches, but if there are matches I get the same error I previously
> posted about the nil object. I checked my indexes and they are create as
> well, for all the models I need to search
I also just upgraded to Ferret 0.10.11 and I am using acts_as_ferret
latest stable
thanks
~wil
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk