Custom filtering of parameters in rails 3 using config.filter_parameters
I'm working on upgrading from Rails 2.3.11 to 3.0.10, and am having trouble converting what is in the ApplicationController 's filter_parameter_logging . I want to filter both certain parameters, and also filter them if they appear in the value of something like a :referrer tag. I can get the regular parameters filtered out in my application.rb config.filter_parameters += [:password, :oauth, ...] But what I'm having trouble with is the block that we also pass in filter_parameter_logging. It also filters out the parameters in any value that looks like a url, so something like http://example.com