AngularJS Todo-list implementation with Rails backend