clarkware / budgets-iphone
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Sep 27 08:32:43 -0700 2009 | |
| |
.gitmodules | Sun Sep 27 08:32:43 -0700 2009 | |
| |
LICENSE | Sun Sep 27 08:32:43 -0700 2009 | |
| |
README.markdown | Wed Sep 30 15:22:04 -0700 2009 | |
| |
client/ | Tue Oct 06 05:38:27 -0700 2009 | |
| |
screenshots/ | Sun Sep 27 08:32:43 -0700 2009 | |
| |
server/ | Sun Sep 27 08:32:43 -0700 2009 |
Budgets
An example iPhone application that talks to a RESTful Rails application to manage budgets and their related expenses.
Why?
This application is intended as a demonstration of how to use ObjectiveResource to manage two (nested) resources living in a Rails application. I first created this application as one of the examples used in my 360iDev presentation in October 2009.
Oh, and because programming is fun. :-)
Features
Again, this app is intended for demonstration purposes only, but it sports a few features you may want to consider in your application:
- Supports all CRUD operations of two resources (Budget and Expense)
- Nested resources
- Asynchronous network requests
- Authentication
- Error handling
For a simpler, stripped down example of how to get started with ObjectiveResource using a single resource, check out the Expenses app.
Quickstart
Fire up the Rails application:
$ cd server/budgets $ rake db:migrate $ ruby script/serverPoint your trusty browser at the running Rails app, and create an account and a budget.
Open the iPhone project and run it!
$ cd client/Budgets $ open Budgets.xcodeproj
Screenshots
This app won't win any design awards, but that's not the point...
Additional Resources
Of course there are alternatives to ObjectiveResource, though they aren't designed specifically to work with Rails:
Author
Mike Clark mike@clarkware.com
