After a lot of trial and error, I realized that with Accept Header */* , and if you use respond_with , you need to make sure that respond_to at the top of the controller matches your order ... In my case, this is correct:
class ProjectsController < ApplicationController respond_to :html respond_to :json respond_to :js, ...
and it is not
class ProjectsController < ApplicationController respond_to :json respond_to :html respond_to :js, ...
Dean
source share