The reference for writing superb iOS apps with Ruby on Rails backends.
This book is really two books in one.
The the first book covers building a backend API in Rails. We will demonstrate how to create a robust, clean, flexible JSON API. Along the way, we’ll discuss different approaches that we didn’t choose and discuss their drawbacks.
The second book walks you through creating an iOS application in Objective-C that uses the Rails API you just created. You’ll learn how the intelligent API choices made in the first section make iOS development far easier.
Who is this book for?
This book is for a developer who wants to build an iOS application with a Rails backend. It’s best suited for a developer with some Rails experience and little iOS experience. It’s also a book for both a Rails developer and an iOS developer to share and use in concert to build an app together.
The approach shared in this book is the result of our own experiments as Rails and iOS developers working together to build an application. The Rails portions of this book assume a basic working knowledge of how to build a web application with Rails as well as the Ruby programming language. The iOS portions of this book assume a basic working knowledge of how to build an iOS application as well as the Objective-C programming language.
More than just a book
In addition to the book (in HTML, PDF, EPUB, and Kindle formats), you also get two complete example applications: the iOS client app and the Rails server application. What the book describes and explains, the example apps demonstrates with real, working code. The apps are up to date for Rails 4 and iOS 7.
The book is written using Markdown and distributed via GitHub. When you purchase, we give you access directly to the repository, so you can use the GitHub issues features to give us feedback about what we’ve written and what you’d like to see.
When you purchase iOS on Rails, you get access all future updates to the book and example applications.
Current Table of Contents
- Why this book?
- Who is this book for?
- Introduction to our example application and setup
- Creating a GET request
- Creating a POST request
- Creating a PATCH request
- Creating a geocoded GET request
- A New Xcode Project
- Alpha and Beta Schemes
- Managing Dependencies
- The Mobile App’s Skeleton
- The Map View Controller
- The Add an Event View Controller
- The Confirmation View Controller
Connecting the Two
- A Rails API Client With NSURLSession
- A Rails API Client With AFNetworking
- The User Object
- Posting a User With NSURLSession
- Posting a User With AFNetworking
- The Event Object
- Posting an Event With NSURLSession
- Posting an Event With AFNetworking
- Getting Events from the API
iOS on Rails is written by Diana Zmuda and Jessie Young.
Use the login info below to open this product (expires in 30 minutes).
Don't have the app yet? Get it here
Download from the app store or text yourself a link to the app
You will be added to the GitHub repository with code examples within one business day.
Looking to create an account?
Add your work, name a price and start selling instantly.
Track conversion rates, referrers and buyer locations.
Just 5% + 25¢ per transaction. No other fees.
Did you mean to login?