Practice connecting Rails with Angular.js