Created
January 11, 2017 00:13
-
-
Save rrichardsonv/c9f89c3b45a7dfc21dda126b448d390f to your computer and use it in GitHub Desktop.
Cams_query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.guesses.select(:card_id).group(:card_id).having("count(*) = 1").length | |
#returns number of correct cards on first guess. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment