0

I would like to know what would happen if I print out the value of a filtered parameters in byebug. Would it be [FILTER] or the actual value or an empty string.

e.g. password and credit card fields

I am getting empty string, so I'm not sure whether that value exist or not.

harinsa
  • 3,176
  • 5
  • 33
  • 53

1 Answers1

0

in console:

Parameters: {"utf8"=>"✓", "email"=>"test@ff.ff", "password"=>"[FILTERED]", "commit"=>"Sing in"}

use byebug:

(byebug) params
{"utf8"=>"✓", "email"=>"test@ff.ff", "password"=>"11111111", "commit"=>"Sing in", "action"=>"create", "controller"=>"sessions"}
Oleh Sobchuk
  • 3,612
  • 2
  • 25
  • 41