Topic: [SOLVED] How to best create models for an Exam with many questions...
The subject about sums it up.
I'm working on a project that will have lessons. Each lesson has_one exam and each exam has many questions. Should I generate a model for exams that links to a separate model for questions and answers or is there a better way to do it. It should be noted that the exams will have different numbers of questions.
I'm just trying to figure out how to do the exam with questions and the correct answers. I'll validate and store/grade user answers later so I don't complicate things.
Also, I'm a beginner at rails and, while I have a basic understanding of associations and models, I'm stuck with how these models should relate to each other.
edit: I guess I should note I'm working with rails 3.2
Last edited by gorrillamcd (2012-03-02 15:43:31)