:include question

Hello all!

Here is the gist with my problem:
http://gist.github.com/291533

I need to get all records with one query. Is it possible? Thanks

Alex S. wrote:

Hello all!

Here is the gist with my problem:
http://gist.github.com/291533

I need to get all records with one query. Is it possible? Thanks

you need to provide little more info. Are they separate models/entities
( individual tables) or an STI - single table inheritance?

they are individual tables, not sti

Thanks a lot!

On Feb 1, 1:47 pm, Frederick C. [email protected]

On Feb 1, 8:55 am, Alex S. [email protected] wrote:

Hello all!

Here is the gist with my problem:http://gist.github.com/291533

I need to get all records with one query. Is it possible? Thanks

I wrote up some examples for the syntax for :include / :joins a little
while ago: