On Fri, Oct 13, 2006 at 09:41:36AM +0200, Eric Gross wrote:
> Hi,
> 
> Im having problems using the multi_search command. I keep getting the 
> following error.
> 
> "undefined method `<<' for Book:Class"
> 
> here is the code associated with this.
> 
> class Book < ActiveRecord::Base
>    acts_as_ferret :store_class_name => true
> end
> 
> 
> class User < ActiveRecord::Base
>    acts_as_ferret :store_class_name => true
> end
> 
> and the call is the following
> 
> t=User.multi_search(@query,Book).

try this:

t = User.multi_search(@query, [ Book ])


I just committed a fix so that 

t=User.multi_search(@query,Book)
will work, too.

cheers,
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