https://egghead.io/lessons/angularjs-rails-todo-api-part-1