Build one option for the questions form when creating a new question
This commit is contained in:
@@ -6,6 +6,10 @@ class Admin::Legislation::QuestionsController < Admin::Legislation::BaseControll
|
|||||||
@questions = @process.questions
|
@questions = @process.questions
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def new
|
||||||
|
@question.question_options.build
|
||||||
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@question.author = current_user
|
@question.author = current_user
|
||||||
if @question.save
|
if @question.save
|
||||||
|
|||||||
Reference in New Issue
Block a user