Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails Web Application to iOS or Android app? [closed]

If I was to use the Ruby on Rails framework to build a web app what would be the best path for me to take to build a mobile application (iOS/ Android) that can speak and connect with the web application?

EG: twitter.com (DESKTOP) - twitter iOS or Android app.

like image 576
John5 Avatar asked Nov 07 '13 20:11

John5


People also ask

Can Ruby on Rails be used for mobile apps?

Yes you can . Your view can be an web page/android/ ios application as view.

What is Ruby on Rails & why you should use it for your web application?

Ruby on Rails is primarily used for creating high-performance web platforms. It is always a suitable option for programming a wide range of tasks for a web application. As Ruby on Rails uses a concise amount of code, which makes it easier to detect and rectify any errors.

Is Ruby on Rails web?

Ruby on Rails, or Rails, is a server-side web application framework written in Ruby under the MIT License. Rails is a model–view–controller (MVC) framework, providing default structures for a database, a web service, and web pages.


2 Answers

It will take a lot of reading.

You will need to build an API on rails framework to communicate with an mobile application. Here are some good links for creating an API with rails:

http://railscasts.com/episodes/350-rest-api-versioning http://collectiveidea.com/blog/archives/2013/06/13/building-awesome-rails-apis-part-1/

I would suggest using Devise for authentication and using their authentication_token to validate users network requests to your API.

http://matteomelani.wordpress.com/2011/10/17/authentication-for-mobile-devices/

Here are some helpful links that I bookmarked awhile ago to help.

http://pnhoang.tumblr.com/post/24160454924/build-a-rails-backend-api-for-an-iphone-client http://www.takeofflabs.com/posts/8-Rails-and-iOS-a-sample-starting-setup https://devcenter.heroku.com/articles/ios-photo-sharing-geo-location-service http://jessewolgamott.com/blog/2012/01/19/the-one-with-a-json-api-login-using-devise/

Best of luck

like image 117
Kyle C Avatar answered Oct 04 '22 23:10

Kyle C


I understand the question is about Ruby on Rails to iOS/Andriod. Have you considered from Ruby to iOS/Andriod? Have a look at RubyMotion. I think its easier with RubyMotion to connect mobile app iOS/Andriod with the Ruby application rather than via web application ROR.

like image 44
Zakir Jaafar Avatar answered Oct 04 '22 23:10

Zakir Jaafar