From 50410f6e4fb469d5d98807c5abeca458188c2c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Mar=C3=ADa=20Mart=C3=ADnez=20G=C3=B3mez?= Date: Thu, 15 Dec 2016 11:50:23 +0100 Subject: [PATCH] Fix multiple choice questions --- app/controllers/admin/questions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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