Phonegap - Rails Application