(Rails determines the desired response format from the HTTP Accept header submitted by the client.)

Maybe we should take that instead of the GET parameter