Strong Params, Nested Attributes and Mongoid don't seem to work because of *_attributes suffix in form?

二次信任 提交于 2019-12-01 11:37:14
Dave

Pierre-Louis Gottfrois, was right, this question fixes my problem. Specifically I needed to add:

params.require(:person).permit(name_attributes: [:first_name, ...])

with the key thing being name_attributes followed by a list of the symbols that I wanted to permit.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!