rails/turbolinks — pull request #299 by blinkist (2013-11-18 14:11:17+00:00)
Title: Integrated request format test for redirects to avoid body responses

We often received plain responses when user hit a controller from the outside of turbo links in the format Turbolinks.visit(...). In order to avoid that we checked your code and found that the easiest solution would be to check for the request content type.

Maybe you can use this adjustment.