On Dec 17, 9:47 am, John Butler <[email protected]> wrote:
> Hi,
>
> I know how to filter passwords, etc etc by using the below
>
> filter_parameter_logging :password
>
> But if i have params like the below so how do i filter them out.
>
> "order"=>{"card_number"=>"4111111111111160"}
>
> ive tried the following below but it doesnt seem to work
>
> filter_parameter_logging :card_number, :order_card_number, :order
>

Weird as the docs say that filter_parameter_logging looks in subhashes
(so filter_parameter_logging :card_number).
Have you tried using the block form of filter_parameter_logging ?
(which yields all key value pairs to the block)

Fred

> How do people do this already?  I have searched google, message boards
> etc but cant seem to find a solution.
>
> JB
>
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to