How to filter parameters in rails?

前端 未结 5 705
南笙
南笙 2020-12-13 12:03

Rails has built in log filtering so you don\'t log passwords and credit cards. Works great for that but when you want to trigger a custom log (like to email) and send your

5条回答
  •  無奈伤痛
    2020-12-13 13:02

    If you are inside a rails controller method, why not just call request.filtered_parameters?

    It is always a good choice to use what is already provided. Cheers!

提交回复
热议问题