I found this bit of code here:
ActionController::Parameters.action_on_unpermitted_parameters = :raise
I tried putting this in config/environments/development.rb
, but it didn't seem to work. Where should I put it? (I only want this for development env.)
Put this into config/environments/development.rb
config.action_controller.action_on_unpermitted_parameters = :raise
this will raise ActionController::UnpermittedParameters
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With