Marnen Laibow-Koser wrote: > Sharagoz wrote: >> Since you are going to join the same table twice, you might as well >> write the whole SQL manually. ActiveRecord doesnt allow you to do >> something like :joins => [:cards as 'c1', :cards as 'c2']. > > Except that it does, since :joins can take a string.
I'm unsure whether Sharagoz was referring to was writing a find_by_sql statement or merely the 'whole' of the :joins string. Unless there is something I'm missing, I don't think writing out a :joins SQL string is the solution here. Thanks, ben -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.