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?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
sql query to fetch | 1 | 108 | February 21, 2008 | |
HABTM & find_all_by | 2 | 103 | May 14, 2009 | |
Doubt in retrievind data from habtm? | 0 | 147 | August 5, 2009 | |
How to deal with collections as input to habtm find? | 0 | 126 | November 13, 2006 | |
habtm or two foreign keys? | 2 | 81 | May 2, 2008 |