Jens Kraemer wrote:
> 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.
> 

so i should use :join instead of :include?
:joins: An SQL fragment for additional joins like "LEFT JOIN comments ON 
comments.post_id = id". (Rarely needed). The records will be returned 
read-only since they will have attributes that do not correspond to the 
tableā€˜s columns. Pass :readonly => false to override.

i don't need to edit them, just to show them, so a simple :joins it can 
be ok, without :readonly => false....
i'll try :)

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

Reply via email to