I currently have a Game model with a list of Player objects…
has_many :players, :dependent => :destroy
…and I have the following statement to return the name and id of all Game objects in my DB…
self.connection.select_all("select id, name from games")
…how can I include the player count for each game, along with the id and name?
Thanks so much in advance for your wisdom!
I think this should work: