RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: brunzino
Also in Rails 4, remember to add the _destroy method to permitted params. Like this:
params.require(:survey).permit(:name, questions_attributes: [:id, :content, :_destroy])
you also need to add it in the QuestionsController