On Tue, May 15, 2007 at 05:37:19PM +0200, Jacob Robbins wrote:
> Rob Lee wrote:
> 
> > 
> > Item.more_like_this(:field_names => [:title, :description, :status],
> > :append_to_query => Proc .... )
> > 
> 
> I don't mean to be nitpicky but more_like_this is an instance method not 
> a class method. This has come up for me because more_like_this does not 
> work for unsaved records in the current AAF which doesn't mesh with the 
> rails convention of creating a new active record object to store user 
> query params. I'd like to make a regular rails form using a blank object 
> and then call more_like_this on that object to do a search.

This isn't supported by aaf but should be possible to do with a bit of
hacking :)

It'll get a bit harder if you want to do this with the DRb server, since
then you'll have to transfer your unsaved record over to the server for
the more_like_this query to be built. Atm only id and class name
are transferred with method calls.

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