Greg Hauptmann
2009-Feb-03 11:54 UTC
does ActiveScaffold support multiple joins? (i.e. in the ":joins => ..." part of a find)
Hi, Does ActiveScaffold support multiple joins? (i.e. in the ":joins => ..." part of a find). Can''t quite seem to see how to make it work (e.g. passing an array in for the :joins parameter didn''t seem to work). If it is possible would you be able to drop in an example? (that is I''m talking about when you do a find, but make use of the ":joins => ''xxx''" option) thanks -- Greg http://blog.gregnet.org/ --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
jemminger
2009-Feb-03 20:25 UTC
Re: does ActiveScaffold support multiple joins? (i.e. in the ":joins => ..." part of a find)
Read the "Table Aliases" part of http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html On Feb 3, 6:54 am, Greg Hauptmann <greg.hauptmann.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > Does ActiveScaffold support multiple joins? (i.e. in the ":joins => > ..." part of a find). Can''t quite seem to see how to make it work > (e.g. passing an array in for the :joins parameter didn''t seem to > work). If it is possible would you be able to drop in an example? > > (that is I''m talking about when you do a find, but make use of the > ":joins => ''xxx''" option) > > thanks > > -- > Greghttp://blog.gregnet.org/--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@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 -~----------~----~----~----~------~----~------~--~---
Greg Hauptmann
2009-Feb-03 20:39 UTC
Re: does ActiveScaffold support multiple joins? (i.e. in the ":joins => ..." part of a find)
arr, thanks - I needed to symbolise the strings I was using 2009/2/4 jemminger <jemminger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > Read the "Table Aliases" part of > > http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html > > > > On Feb 3, 6:54 am, Greg Hauptmann <greg.hauptmann.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> Hi, >> >> Does ActiveScaffold support multiple joins? (i.e. in the ":joins => >> ..." part of a find). Can''t quite seem to see how to make it work >> (e.g. passing an array in for the :joins parameter didn''t seem to >> work). If it is possible would you be able to drop in an example? >> >> (that is I''m talking about when you do a find, but make use of the >> ":joins => ''xxx''" option) >> >> thanks >> >> -- >> Greghttp://blog.gregnet.org/ > > >-- Greg http://blog.gregnet.org/ --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---