I would move line 9 into the if @answer.save conditional (we don't want to associate "bad" answers with the question)