Integrating AngularJS with Rails API