2 places in my Rails app have ajax calls. (one for jQueryUI drag-and-drop sorting, and one for updating a comment post).
Whenever these calls occur, the user gets logged out. For no apparent reason. I'm using omniauth-facebook and omniauth-google-oauth2 for authentication.
How can this get fixed?
Here's what the ajax call looks like (coffeescript):
  $.ajax({
    type: 'put',
    data: {post_id: post.attr("id")},
    dataType: 'json',
    complete: -> post.children('.headpost').children('.buttons').removeClass('new_reply'),
    url: '/posts/update/'})
Thanks!
