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

前端 未结 19 1482
谎友^
谎友^ 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:05

    You can end a session via get by changing the devise configuration in initializers.

    # The default HTTP method used to sign out a resource. Default is :delete.
    config.sign_out_via = :get
    

    Just open the link and your session is removed.

提交回复
热议问题