提交 ae057d62 编写于 作者: F Francesco Rodriguez

fix StrongParameters example [ci skip]

上级 4736c14f
......@@ -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
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册