This post moved to https://squarism.com/posts/how-to-write-a-ruby-rails-3-rest-api.