ArgumentError in Devise::RegistrationsController#new wrong number of arguments (2 for 0..1)

橙三吉。 提交于 2019-12-05 10:41:44

In your application trace I can see that you are using Rails 4 which now removes mass assignment for models and has replaced it with the strong_parameters gem as default.

Therefore, when creating new records you can remove the 'without_protection' option as it is no longer implemented.

The new line of code should read:

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