Couldn't find User with id=sign_out

前端 未结 6 1836
粉色の甜心
粉色の甜心 2021-01-04 15:19

Sign-out link isn\'t working in my rails application.

I have checked my routes.rb which is listed below and my application.html.erb looks to follow the right path.

6条回答
  •  庸人自扰
    2021-01-04 15:35

    Since non of the other answers worked, I found that you could change the base path for every Devise endpoint as described here. So, what I did was to user devise_for on routes.rb:

    devise_for :users,
             path: 'devise'
    

    Then, all my Devise routes started with devise instead of users so the conflict was gone.

提交回复
热议问题