AngularJS with Rails4 API