1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix StrongParameters example [ci skip]

This commit is contained in:
Francesco Rodriguez 2012-10-21 11:49:51 -05:00
parent 4736c14fdb
commit ae057d622f

View file

@ -361,7 +361,7 @@ module ActionController
# # 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
#