A rails API with AngularJS front-end