No route matches [GET] “/users/sign_out”

前端 未结 19 1486
谎友^
谎友^ 2020-12-04 18:44

Here is my actual error: No route matches [GET] \"/members/sign_out\" Since most people will use \"users\" I thought it would be more helpful to have that in th

相关标签:
19条回答
  • 2020-12-04 19:12

    In devise.rb, change

     config.sign_out_via = :delete
    

    to

    config.sign_out_via = :get
    

    This worked for me. I went crazy with this because the default is delete and I don’t understand why.

    This works, but I am not sure whether it affects other elements in the application.

    0 讨论(0)
提交回复
热议问题