ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash

rails 开发中 5.1版本使用binding.pry会报  ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash
可以在下面文件中设置
applicaiton.rb

if Rails.env.development?
config.action_controller.permit_all_parameters = true
end
posted on 2017-09-13 16:52  c3tc3tc3t  阅读(858)  评论(0编辑  收藏  举报