Rails + AngularJS + Postgresql