Building a RESTful API in a Rails Application
airpair.com