Ruby on Rails serving an API and an AngularJS front-end