diff options
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/action_controller_overview.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md index 61eb2ef089..5861fc3d54 100644 --- a/guides/source/action_controller_overview.md +++ b/guides/source/action_controller_overview.md @@ -278,7 +278,7 @@ root-key because normally it does not exist when calling `new`: ```ruby # using `fetch` you can supply a default and use # the Strong Parameters API from there. -params.fetch(blog:, {}).permit(:title, :author) +params.fetch(:blog, {}).permit(:title, :author) ``` `accepts_nested_attributes_for` allows you update and destroy the |