Permalink
Browse files

Merge pull request #302 from sunny/patch-1

Strong parameter ends with "_attributes" in README.md
  • Loading branch information...
lest committed Dec 1, 2013
2 parents 30cfe18 + 24ecbcb commit 1b0689dfb4d230ceabd278eba159fcb02f23c68a
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -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.

0 comments on commit 1b0689d

Please sign in to comment.