Hi!

On Wed, Mar 07, 2007 at 06:31:37AM +0100, Sanjay Kapoor wrote:
[..] 
> My search controller uses it like this:
> 
> # build sort
> @sf_published_at = Ferret::Search::SortField.new(:published_at_string, 
> :type => :string, :reverse => true)
> @sort = Ferret::Search::Sort.new(@sf_published_at)
> 
> # set options
> @options = {:limit => 20, :sort => @sort}

could you please try 

@options = { :limit => 20, :sort => [ @sf_published_at ] }

instead? I have still some problems marshalling ferret classes, seems
the Sort class is one of them...
Using the array instead of a Sort instance works fine here (Ferret
0.11.2)

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

Reply via email to