Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix StrongParameters example [ci skip]

  • Loading branch information...
commit ae057d622fccf7cc5dcd2609a7fe3f1e0589808f 1 parent 4736c14
Francesco Rodriguez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/metal/strong_parameters.rb
View
2  actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -361,7 +361,7 @@ def each_element(object)
# # It's mandatory to specify the nested attributes that should be whitelisted.
# # If you use `permit` with just the key that points to the nested attributes hash,
# # it will return an empty hash.
- # params.require(:person).permit(:name, :age, pets_attributes: { :name, :category })
+ # params.require(:person).permit(:name, :age, pets_attributes: [ :name, :category ])
# end
# end
#
Please sign in to comment.
Something went wrong with that request. Please try again.