I\'m doing a singe-page application using Rails. When signing in and out Devise controllers are invoked using ajax. The problem I\'m getting is that when I 1) sign in 2) sig
Check whether you have included this in your application.js file
//= require jquery //= require jquery_ujs
//= require jquery
//= require jquery_ujs
The reason being is jquery-rails gem which automatically sets the CSRF token on all Ajax requests by default, needs those two