FYI - To get this to work in Rails 4 (I just generated the questions for my example so you will need to add for answers), you need to add to the bottom of the Survey Controller:
def survey_params
params.require(:survey).permit(:name, questions_attributes: [:id, :content])
end
FYI - To get this to work in Rails 4 (I just generated the questions for my example so you will need to add for answers), you need to add to the bottom of the Survey Controller:
def survey_params
params.require(:survey).permit(:name, questions_attributes: [:id, :content])
end