diff --git a/app/controllers/admin/questions_controller.rb b/app/controllers/admin/questions_controller.rb index b3f2be23..71abc7a1 100644 --- a/app/controllers/admin/questions_controller.rb +++ b/app/controllers/admin/questions_controller.rb @@ -95,7 +95,7 @@ module Admin private def question_params - params.require(:question).permit(:title, :global, :answers_attributes, :answer_ids, :question_type_id, :conference_id) + params.require(:question).permit(:title, :global, :answer_ids, :question_type_id, :conference_id, answers_attributes: [:id, :title]) end def conference_params