From 24ecbcb2359705bc99b38c906c8a47546062d651 Mon Sep 17 00:00:00 2001 From: Sunny Ripert Date: Sun, 1 Dec 2013 16:30:48 +0100 Subject: [PATCH] Strong parameter ends with "_attributes" in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 40d37b7a..667b9dec 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ if the object is marked for destruction. For Rails 4 or people using the "strong_parameters" gem, here is an example: ```ruby -params.require(:project).permit(:name, tasks: [:id, :name, :_destroy]) +params.require(:project).permit(:name, tasks_attributes: [:id, :name, :_destroy]) ``` The `:id` is to make sure you do not end up with a whole lot of tasks.