aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--guides/source/action_controller_overview.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md
index 82a23b3dc0..0c06e36de9 100644
--- a/guides/source/action_controller_overview.md
+++ b/guides/source/action_controller_overview.md
@@ -328,7 +328,7 @@ the job done:
```ruby
def product_params
- params.require(:product).permit(:name, { data: params[:product][:data].try(:keys) })
+ params.require(:product).permit(:name, data: params[:product][:data].try(:keys))
end
```