Intergrate mobile code to rails app.