On 8/26/06, Alastair Moore <[EMAIL PROTECTED]> wrote:
> Hello guys,
>
> I'm pretty new to using AAF and am having a slight problem with using a
> condition. I have the following code
>
> @results = SupplierProduct.find_by_contents(params[:search], :conditions
> => ['area_id = ?', @area])
>
> and it seems the condition isn't being applied. Does anyone have any
> pointers?
>
> Cheers,
>
> Alastair

I'm not sure if the find_by_contents method has a :contents parameter
but even if it does, I'd personally do it just like this;

    @results = SupplierProduct.find_by_contents(params[:search] + "
+area_id:[EMAIL PROTECTED]")

cheers,
Dave
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to