AngularJS app with Rails API server