RailsCasts Pro episodes are now free!

Learn more or hide this

brees83's Profile

GitHub User: brees83

Comments by


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])