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

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

    = link_to "Sign out", destroy_user_session_path,:method => :delete
    

    will NOT work instead use this,

    = link_to "Sign out", destroy_user_session_path,:method => 'delete'
    

    should do the trick or worse case add require jquery_ujs in your application.js

提交回复
热议问题