Ruby on Rails - devise users/sign_out not working

前端 未结 4 2109
抹茶落季
抹茶落季 2021-02-07 03:26

I\'m using devise sign_in and sign_up urls are working

but, when I try the url: http://localhost:3000/users/sign_out

it gene

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-07 03:33

    Put this into app/views/layouts/application.html.erb

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
    

    I hope it helps you

提交回复
热议问题