# Filter\_parameter\_logging not working?

**URL:** <https://www.ruby-forum.com/t/filter-parameter-logging-not-working/144378>\
**Category:** Rails\
**Created:** [July 29, 2008, 6:27am UTC](https://www.ruby-forum.com/t/filter-parameter-logging-not-working/144378 "2008-07-29T06:27:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![icewoman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@icewoman](https://www.ruby-forum.com/u/icewoman)\
**Post date:** [July 29, 2008, 6:27am UTC](https://www.ruby-forum.com/t/filter-parameter-logging-not-working/144378/1 "2008-07-29T06:27:57Z")

</div>

Well, it looks straightforward, but including the line:

filter\_parameter\_logging :password

in my application.rb, and in my account\_controller is having no  
discernable effect. I’m using acts\_as\_authenticated, with all the  
standard stuff from December, '07.

Did I misread the instructions?

From my log:  
Parameters: {“commit”=\>“Log in”, “action”=\>“login”,  
“controller”=\>“account”, “password”=\>“somepassword”,  
“login”=\>“icewoman”}

---

<div class="post-metadata">

**Author:** ![icewoman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@icewoman](https://www.ruby-forum.com/u/icewoman)\
**Post date:** [July 29, 2008, 6:43am UTC](https://www.ruby-forum.com/t/filter-parameter-logging-not-working/144378/2 "2008-07-29T06:43:44Z")

</div>

Is this on your production server? You will need to restart the  
running mongrel cluster or apache for it to reload the changes.

---

<div class="post-metadata">

**Author:** ![icewoman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@icewoman](https://www.ruby-forum.com/u/icewoman)\
**Post date:** [July 29, 2008, 6:51am UTC](https://www.ruby-forum.com/t/filter-parameter-logging-not-working/144378/3 "2008-07-29T06:51:56Z")

</div>

Thanks for the quick reply!

I have tried it on both my production and development platforms. And  
restarted the server on each.

Sounds like what I typed looks right, at least…

---

<div class="post-metadata">

**Author:** ![icewoman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@icewoman](https://www.ruby-forum.com/u/icewoman)\
**Post date:** [August 1, 2008, 2:49am UTC](https://www.ruby-forum.com/t/filter-parameter-logging-not-working/144378/4 "2008-08-01T02:49:15Z")

</div>

Still haven’t had any luck. Can anyone provide additional advice?

---

<div class="post-metadata">

**Author:** ![icewoman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@icewoman](https://www.ruby-forum.com/u/icewoman)\
**Post date:** [August 2, 2008, 9:22pm UTC](https://www.ruby-forum.com/t/filter-parameter-logging-not-working/144378/5 "2008-08-02T21:22:10Z")

</div>

Case closed:

An experience Rails programmer buddy of mine figured it out after  
looking at my code. I had two lines in there, not one. The second  
line was: filter\_parameter\_logging :password\_confirmation. It was  
overwriting my filter for password. When I combined the two lines  
into one: filter\_parameter\_logging :password, :password\_confirmation,  
it started working.
