On 18 February 2015 at 16:06, Puneet Agarwal <[email protected]> wrote: > Can you please elaborate this how to create json api. And will it look like > application which is built using android studio. I am novice in apps so > might be asking silly questions. But can you please tell me something more > about this. I have thought 1 way using cordova in which I will transfer data > using ajax that is using json only , are you suggesting this thing only??
You can just add format.json do in the respond_to block and render the json that you want. I am sure google will easily find loads of stuff on adding a json api to a rails app. As for developing android apps this is not the right list, as that is nothing to do with rails. In your case it just happens that the server api is being provided by a rails app, that is of little relevance to the mobile app. Of course the simplest solution is just to provide pages specifically designed for mobile devices in your rails app and view them in the browser on the mobile device. Colin > > On Wednesday, 18 February 2015 07:40:04 UTC-8, Puneet Agarwal wrote: >> >> Hi, >> >> I am having full fledged working website using rails framework. It is >> responsive also. But now I want mobile application of the same with some >> less features. Now I have done Rnd and found that there are 2 ways or 2 >> Platforms. >> 1) Cordova >> 2) Android Studio >> >> Now I am not able to select which will be better and how I proceed >> converting rails application to mobile application. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/43579b4b-3921-45d3-8fd7-b3061624f7e9%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvBO4A5UbLk1hhp7jWA8Xzx2_nTBcVsGs4yPXWatSnBqg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

