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.
Yes you can . Your view can be an web page/android/ ios application as view.
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.
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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With