AngularJS with Rails 4 API