Rating App using Angular Js with Rails API