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 How do people do this already? I have searched google, message boards etc but cant seem to find a solution. JB -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Dec 17, 9:47 am, John Butler <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No, doesnt seem to work either...... -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.