In Rails 4 disable Strong Parameters by default

Mike Silvis picture Mike Silvis · Aug 7, 2013 · Viewed 12.1k times · Source

Is there anyway to disable using strong params?

And I know it's a security vulnerability but I really don't need it / want it.

Answer

iain picture iain · Sep 11, 2013

Turning off attribute protection is almost always a bad idea.

With that obligatory note out of the way, here's how to turn it off:

config.action_controller.permit_all_parameters = true

Place this in config/application.rb