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

前端 未结 19 1765
谎友^
谎友^ 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 18:48

    I am using rails version 5. I encounter this problem also. The simple fix I did was to changing the devise configuration in initializes to the default.

    From :

    config.sign_out_via = :get
    

    To :

    config.sign_out_via = :delete
    

提交回复
热议问题