AngularJS consuming rails server app