This is a rails app with devise that is supposed to communicate with a phonegap application