Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit 24ecbcb

Browse files
committed
Strong parameter ends with "_attributes" in README.md
1 parent 30cfe18 commit 24ecbcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if the object is marked for destruction.
6767
For Rails 4 or people using the "strong_parameters" gem, here is an example:
6868

6969
```ruby
70-
params.require(:project).permit(:name, tasks: [:id, :name, :_destroy])
70+
params.require(:project).permit(:name, tasks_attributes: [:id, :name, :_destroy])
7171
```
7272

7373
The `:id` is to make sure you do not end up with a whole lot of tasks.

0 commit comments

Comments
 (0)