Finally found out why submitting teh AJAX for trip add was killing the session. i was not passing in the CSRF tokens necessary... got around this with a global function that sets the ajax request header to send it. see application.js