The issue may potentially be related to this validation line
validates :question, presence: true
It assumes your Question model has a :question
attribute. In other words, makes sure there is a proper question
database column in the questions
database table.
If this is not the case, fix the either the table or the validation accordingly.