EDITED Question
I understand that I can't just throw Rails code into Phonegap and I have to write create some static pages and use JS to do the server communication for data. My question is how to write Rails code to handle http request to return a JSON with information?
Thanks
OLD Question
I built a Rails mobile app and I am interested in using Phonegap to turn it into a native iPhone and Android app.
I searched around and wasn't really able to find a good tutorial on how to do this. I watched the Quick Left video and I am confused why the extra middle wear code was needed. From my understanding, to use Phonegap I need to rewrite all the front end and data fetching in javascript.
If anyone could offer some insight or point me to some tutorial to how I could integrate my Rails app with Phonegap please let me know.
Thanks