In Rails, when you go to the edit action, it automatically pulls the information from the models and populates the form. If I had a CRUD that saves sensitive information, for example password or ssn, how can I filter the values so that it doesn't just show it in plaintext when editing the form?
I was going to change the value in the controller by setting it to ****
, but the potential risk there is people may submit the form and it will update the SSN to ****
.
I'm not referring to filtering the params so it doesn't show up in console (config.filter_parameters).