Ajax Delete links log out current_user

前端 未结 4 2410
自闭症患者
自闭症患者 2021-02-20 05:09

The title pretty much explains it. I\'m having an odd situation where views that allow users to delete notifications using Ajax cause the current_user to be logged out. I don\'t

4条回答
  •  南笙
    南笙 (楼主)
    2021-02-20 06:03

    Is it possible that the destroy notification path is redirecting to the session destroy path through JS?

    Do you have destroy.js template in your notifications views? try adding one that is empty see if you get a different result.

提交回复
热议问题