diff options
author | Tore Darell <toredarell@gmail.com> | 2008-11-03 21:08:46 +0100 |
---|---|---|
committer | Tore Darell <toredarell@gmail.com> | 2008-11-03 21:08:46 +0100 |
commit | a32be96753a02d2cad31231445346c905768399f (patch) | |
tree | 5f862d814daa992608bae89d27f7b49feeb2b5e8 | |
parent | 2a4d80872642356fb2ddb276dd4928312d83e1c1 (diff) | |
download | rails-a32be96753a02d2cad31231445346c905768399f.tar.gz rails-a32be96753a02d2cad31231445346c905768399f.tar.bz2 rails-a32be96753a02d2cad31231445346c905768399f.zip |
Keys -> values
-rw-r--r-- | railties/doc/guides/source/actioncontroller_basics/parameter_filtering.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/actioncontroller_basics/parameter_filtering.txt b/railties/doc/guides/source/actioncontroller_basics/parameter_filtering.txt index c4577d4f6d..595498dd4d 100644 --- a/railties/doc/guides/source/actioncontroller_basics/parameter_filtering.txt +++ b/railties/doc/guides/source/actioncontroller_basics/parameter_filtering.txt @@ -1,6 +1,6 @@ == Parameter filtering == -Rails keeps a log file for each environment (development, test and production) in the "log" folder. These are extremely useful when debugging what's actually going on in your application, but in a live application you may not want every bit of information to be stored in the log file. The link:http://api.rubyonrails.org/classes/ActionController/Base.html#M000837[filter_parameter_logging] method can be used to filter out sensitive information from the log. It works by replacing certain keys in the `params` hash with "[FILTERED]" as they are written to the log. As an example, let's see how to filter all parameters with keys that include "password": +Rails keeps a log file for each environment (development, test and production) in the "log" folder. These are extremely useful when debugging what's actually going on in your application, but in a live application you may not want every bit of information to be stored in the log file. The link:http://api.rubyonrails.org/classes/ActionController/Base.html#M000837[filter_parameter_logging] method can be used to filter out sensitive information from the log. It works by replacing certain values in the `params` hash with "[FILTERED]" as they are written to the log. As an example, let's see how to filter all parameters with keys that include "password": [source, ruby] ------------------------- |