Rails 查看 request 的 Content-Type
request.format
request.format.json?