zoevkay/test_app — pull request #1 by statianzo (2013-12-17 00:39:26+00:00)
Title: Add XHR header so Rails will give back JSON

Rails ignores content negotiation when the Accept header includes `*/*`.
By adding the XHR header for Angular requests, it'll fix the behavior.

See https://github.com/rails/rails/issues/9940 and https://github.com/angular/angular.js/issues/1004