I want to answer json in all formats.
I can force the json rendering format so that the action displays show.json despite the accept header:
def show render formats: :json end
How to set up a rendering format for all controller actions?
Something like that:
class GalleriesController < ApplicationController formats :json end
source share