From 57c516f77587ba032600968da52c1b279e18c8fa Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Tue, 5 Mar 2013 08:31:44 -0300 Subject: Fix typo in AC overview guide [ci skip] --- guides/source/action_controller_overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides') 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 -- cgit v1.2.3