Forum: Ruby on Rails sql question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fir L. (Guest)
on 2008-12-07 04:33
I have two models of matches and teams that are in habtm relations.
now now to render all the teams with the number of other teams that they
have match with? Also I tried to run find_by_sql but don't know how to
add :include with it. Any help?
This topic is locked and can not be replied to.