How to raise an exception when unpermitted parameters are submitted?

后端 未结 0 1036
感情败类
感情败类 2021-02-11 20:23

I found this bit of code here:

ActionController::Parameters.action_on_unpermitted_parameters = :raise

I tried putting this in config/envi

相关标签:
回答
  • 消灭零回复
提交回复
热议问题