Selectively disabling parameter logging in controllers

By default, Rails logs all parameters passed to a controller method.
As far as I can tell, this happens in both development and production
modes.

I have a form that collects some sensitive data. I don’t want that data
sent to the log, at least not in production mode. Of course, I’d still
like to log everything else. Is there a way to accomplish this?

On E, 2006-05-22 at 21:25 +0200, Dan T. wrote:

By default, Rails logs all parameters passed to a controller method.
As far as I can tell, this happens in both development and production
modes.

I have a form that collects some sensitive data. I don’t want that data
sent to the log, at least not in production mode. Of course, I’d still
like to log everything else. Is there a way to accomplish this?

This should do exactly what you need:
http://wiki.rubyonrails.org/rails/pages/Filter+Logged+Params+Plugin


Tarmo Tänav [email protected]

On 5/22/06, Tarmo Tänav [email protected] wrote:

http://wiki.rubyonrails.org/rails/pages/Filter+Logged+Params+Plugin
Also note that this is in Edge Rails:
http://dev.rubyonrails.org/changeset/4200