Peer-writing app with AngularJS front-end with Rails back-end