AngularJS with Rails4 API - CRUD