这是我的错误堆栈:
> TypeError (no implicit conversion of nil into String):
>
> activesupport (5.0.0.1) lib/active_support/security_utils.rb:23:in `digest'
lib/action_controller/metal/http_authentication.rb:71:in `block in
> http_basic_authenticate_with'
这是我的代码:
http_basic_authenticate_with username: "xxx01", password: "123456"
当我评论代码时,它可以工作,我不知道为什么会发生这个错误,如何解决它
当我第一次进入页面时它可以工作,但是当我输入用户名和密码时发生错误。