mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fixed typo in strong parameters example
This commit is contained in:
parent
1d8b566478
commit
41b9e86f9e
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ parameters:
|
||||||
params.require(:author).permit(:name, books_attributes: [:title, :id, :_destroy])
|
params.require(:author).permit(:name, books_attributes: [:title, :id, :_destroy])
|
||||||
```
|
```
|
||||||
|
|
||||||
Hasesh with integer keys are treated differently and you can declare
|
Hashes with integer keys are treated differently and you can declare
|
||||||
the attributes as if they were direct children. You get this kind of
|
the attributes as if they were direct children. You get this kind of
|
||||||
parameters when you use `accepts_nested_attributes_for` in combination
|
parameters when you use `accepts_nested_attributes_for` in combination
|
||||||
with a `has_many` association:
|
with a `has_many` association:
|
||||||
|
|
Loading…
Reference in a new issue