On Mon, Mar 26, 2007 at 06:09:41PM +0200, david wrote:
> Jens Kraemer wrote:
> > 
> > the right place is the second argument hash of find_by_contents:
> > 
> > Model.find_by_contents(query, {}, { :select => 'id' })
> > I didn't ever try with select but if it's a valid option to find :all,
> > it should work.
> > 
> > Jens
> > 
> 
> i tried with this: self.find_by_contents(query, options, {:select => 
> 'users.nick', :include => [:user, :categories]}) and it doesn't work.. 

I just tried this myself and you're right, it doesn't work - that is,
all fields get selected. 

If you try this with plain active record's find method, you'll see that
even then your :select option will be ignored when an :include option is
given. So unfortunately there's nothing acts_as_ferret can do about this.

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