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:
parent
4736c14fdb
commit
ae057d622f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue