SethLieberman / Flash-Card-App

NYCDA Flash Cards and Quiz App
3 stars 0 forks source link

User can take a quiz #36

Open richardmable opened 8 years ago

richardmable commented 8 years ago

User can take a quiz. A quiz consists of questions. It will be multiple choice and the user selects via radio buttons or checkbox. We will pull answers via Level.find(1).cards.find(randomnumber).answer and first limit the random number by checking the length of the returned array - 1 via Level.find(1).cards.length. In the controller, we will write logic that checks the correct answers, and then if the user passes the quiz, we will update the users' profile with the correct credibility and level.