[Rails] Re: :include question

2010-02-01 Thread Rails List
Alex Shkolnikov 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

[Rails] Re: :include question

2010-02-01 Thread Alex Shkolnikov
they are individual tables, not sti On Feb 1, 12:43 pm, Rails List li...@ruby-forum.com wrote: Alex Shkolnikov 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

[Rails] Re: :include question

2010-02-01 Thread Frederick Cheung
On Feb 1, 8:55 am, Alex Shkolnikov alex.shkolni...@gmail.com 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:

[Rails] Re: :include question

2010-02-01 Thread Alex Shkolnikov
Thanks a lot! On Feb 1, 1:47 pm, Frederick Cheung frederick.che...@gmail.com wrote: On Feb 1, 8:55 am, Alex Shkolnikov alex.shkolni...@gmail.com 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?