Report question

Question: Ruby on Rails: How do detect if access by JSON?