Answer the question
In order to leave comments, you need to log in
Which Active Record link should I choose in my case?
I am developing an educational application like Toster. There are questions, for every question there are answers, for every answer there is an author.
How to make associations in this case?
Answer the question
In order to leave comments, you need to log in
[Question] belongs_to [Author (user)]
[Question] has_many [Answers]
[Answer] belongs_to [Author (user)]
In my opinion everything is straightforward, if there are no special requirements.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question