Skip to content

Commit

Permalink
Merge pull request #3199 from tricknotes/fix-doc-for-permitted_params
Browse files Browse the repository at this point in the history
Fix doc for `permitted_params`
  • Loading branch information
seanlinsley committed Jun 6, 2014
2 parents 3d7605f + 88ee322 commit e35ace8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/2-resource-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ ActiveAdmin.register Post do
controller do
def create
# Good
@post = Post.new(permitted_params)
@post = Post.new(permitted_params[:post])
# Bad
@post = Post.new(params[:post])

Expand Down

0 comments on commit e35ace8

Please sign in to comment.