Chat app with AngularJS and Rails