api blog from http://blog.ellenmusick.com/post/59567636221/using-a-json-api-in-your-rails-app, https://github.com/evenellie/your_rep