I am developing an application based on questions and answers, and I would like to prevent a registered user from posting multiple answers to the same question.
How can I do that? And where is the best place to put this code (i.e. controller, model)?