Converting rails application to mobile application

37 views
Skip to first unread message

Puneet Agarwal

unread,
Feb 18, 2015, 10:40:04 AM2/18/15
to rubyonra...@googlegroups.com
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. 

Colin Law

unread,
Feb 18, 2015, 10:44:58 AM2/18/15
to rubyonra...@googlegroups.com
On 18 February 2015 at 15:40, Puneet Agarwal
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?

Colin

>
> --
> 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 rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/6240e360-5e57-4208-944c-3d76179021a4%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Puneet Agarwal

unread,
Feb 18, 2015, 10:49:51 AM2/18/15
to rubyonra...@googlegroups.com
Yes Exactly i want to have interface in mobile also in app format with no changes at the server end.

Colin Law

unread,
Feb 18, 2015, 10:54:02 AM2/18/15
to rubyonra...@googlegroups.com
On 18 February 2015 at 15:49, Puneet Agarwal
<puneet.241...@gmail.com> 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.

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 rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/905f4cea-a26f-4542-9d7c-88cf3b7fddf8%40googlegroups.com.

Puneet Agarwal

unread,
Feb 18, 2015, 11:06:53 AM2/18/15
to rubyonra...@googlegroups.com
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 Wednesday, 18 February 2015 07:40:04 UTC-8, Puneet Agarwal wrote:

Colin Law

unread,
Feb 18, 2015, 11:28:01 AM2/18/15
to rubyonra...@googlegroups.com
On 18 February 2015 at 16:06, Puneet Agarwal
<puneet.241...@gmail.com> 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 rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/43579b4b-3921-45d3-8fd7-b3061624f7e9%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages