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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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? Thanksyou need to provide little more info. Are they separate models/entities ( individual tables) or an STI - single table inheritance? -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
they are individual tables, not sti On Feb 1, 12:43 pm, Rails List <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 more info. Are they separate models/entities > ( individual tables) or an STI - single table inheritance? > -- > Posted viahttp://www.ruby-forum.com/.-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Feb 1, 8:55 am, Alex Shkolnikov <alex.shkolni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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? ThanksI wrote up some examples for the syntax for :include / :joins a little while ago: http://www.spacevatican.org/2008/8/8/nested-includes-and-joins -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks a lot! On Feb 1, 1:47 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Feb 1, 8:55 am, Alex Shkolnikov <alex.shkolni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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:http://www.spacevatican.org/2008/8/8/nested-includes-and-joins-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.