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.
Cordova
Android Studio
Now I am not able to select which will be better and how I proceed
converting rails application to mobile application.
On 18 February 2015 at 15:40, Puneet Agarwal [email protected] wrote:
converting rails application to mobile application.
Do you mean that you want to keep the web server doing the work, with
an app running on a mobile device interfacing with it?
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??
On 18 February 2015 at 15:49, Puneet Agarwal [email protected] wrote:
Yes Exactly i want to have interface in mobile also in app format with no
changes at the server end.
So that means you do not wish to convert the rails app to a mobile
app, you just want to provide an additional interface to the rails app
that you can access from the mobile device. Usually this would be
done by using a JSON api in the app, which you access from the mobile
app.
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.