session is for temporary data relevant to a particular login instance and I 
wouldn't count on persisting.

Quiz has_many questions

Question has_many answers

Answer 
-is each multiple choice option

UserAnswer belongs_to answer, user, question 
-question isn't really strictly required to build the data but think it 
helps if you can change answers
-validate_uniqueness user, :scope => :question  # so that each user can have 
only one answer per question

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to