Since this controller doesn't need to respond to any format other than JSON, these four lines could just be replaced with `render json: @countries` (`respond_to` is only needed for responding to multiple formats)