AngularJS + Rails 4 running on PostreSQL