An AngularJS app on Rails with a PostgreSQL database