On Wed, Apr 18, 2007 at 06:56:19PM +0200, Steven Garcia wrote:
> Alright, I am getting new errors now which means I'm making progress
> right?
>
> You have a nil object when you didn't expect it!
> The error occurred while evaluating nil.constantize
>
> If this is not obvious enough I can post up a full trace on pastie.
> Let me know
Yes, a trace would be useful so we know where this happens.
>
> For the record, my search model now looks like this:
>
> class Search
> attr_accessor :query
>
> def initialize(query)
> @query = query
> end
>
> def do_search
> return Article.multi_search(query, [Article, Term])
> end
> end
>
> And the only remotely ferret related code in Terms and Articles is
>
> acts_as_ferret :fields => { :title => { :boost => 2 }, :body =>
> {:index => :untokenized} }
looks ok.
Jens
--
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk