在日志中过滤password

在user controller中加入
filter_parameter_logging "password"
如果想完全禁止POST logging,则可以在production.rb中修改:config.log_level = :warn

你可能感兴趣的:(ROR)