On 7 Sep 2008, at 12:54, Phlip wrote:
>
>> In a situation like this :joins might be more appropriate - it will
>> write the joins but won't do any of the stuff :include would
>
> Can you :joins => :leaf_records ? Or do you got to write all the raw
> SQL?
>
You can either pass raw sql or options in exactly the same format as
include takes them (eg :joins => [{:foo => {:bar =>
[:baz, :bam]}}, :bim])
Fred
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---