Ajax Delete links log out current_user

前端 未结 4 2481
自闭症患者
自闭症患者 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条回答
  •  萌比男神i
    2021-02-20 05:56

    Are you sure this controller and action are the ones that are triggered by the request? It sounds like the path you are DELETEing isnt right and you are hitting your sessions path instead.

提交回复
热议问题