I used “redirect_to” in a controller to redirect the user to a different page. And I always got a:
“You are being redirected”
In the Browser. And a “406 Not Acceptable” in the console. I googled the whole day for this issue. In the end I found out that the problem was a new action in the controller. 2 days ago I added a method with the name “location”. I guess with this method name I have overwritten something in rails. As soon I renamed the method all my problems disappeared.