TypeError in Devise::ConfirmationsController#show nil is not a symbol nor a string

TypeError in Devise::ConfirmationsController#show

nil is not a symbol nor a string

what’s causing this error anyone please? it says it’s from dirty.rb line 181