title: Rails Devise disable redirect for ajax request
body: <p>I want for one of the pages of the application has the ability to partially update some user settings.
  Also the application already has a page to edit all settings.
  I was faced with the fact that when I send a request for a partial update, the devise redirects me to the root, but I don`t want it.</p>
  
  <p>Can I somehow disable redirection for the Ajax request, and leave for a page to edit all settings? Or at least turn it off for all pages at once?</p>