In my Rails 4 application, when I have a form including a password, i.e.
<%= password_field_tag 'admpwd', nil, size:32, maxlength: 32, class:
'admentry' %>
I don't like the fact that the password is shown plain text in the log
file, and would like to disable this. I found several suggestions to
place the call
filter_parameter_logging "password"
into application.rb, but when I do it, I get the error message
undefined method `filter_parameter_logging' for
Tamsin::Application:Class
How can I do this correctly?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a7f3ac73e71e2b37a32775c087784c37%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment