I'm pretty new to rails and have just begun playing around with creating a rails survey app to help better understand a nested data structure. I know I'm going to configure it so that a Survey has_many Questions. What I'm wondering is should I create another object "Answer" to just store each answer response and say a Question has_many Answers? Or should I just look into storing that information into the Question objects themselves? Really the only content that an answer will have is it's name.
I guess I'm looking for recommendations for how to handle this type of nested data structure.
Also, I haven't given too much though with how I would store responses - would having Answers as separate objects be easier to store/display the outcome of the survey?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…