Should I be using symbols then?

When I omit the :field option I get @condition thrown at me (which, btw, 
is my query string).

Thanks for your help.

- Winton

Jens Kraemer wrote:
> Hi!
> On Mon, Sep 25, 2006 at 07:12:59AM +0200, Winton wrote:
>> I am getting nil returned when doing the following:
>> 
>> r.highlight(@condition, :field => 'body')
>> 'r' is an instance of the a_a_f model. 'body' is a tokenized saved 
>> field.
>> 
>> I am running latest ferret and a_a_f trunk. Am I doing something wrong?
> 
> maybe ;-)
> you should not use strings for field names any more. Maybe this already
> fixes things...
> 
> what does happen if you call highlight without the :field option ?
> 
> 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


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
Ferret-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to