Kanna connect Rails and Cordova. Kanna is framework to create mobile application very simple