Upgrade to Rails 4.1.8
redirect_to no longer redirect to a parameter hash

So we need to cast instances of ActionController::Parameters to a
Hash. Here's the change in Rails:

https://github.com/rails/rails/commit/3e006d5076a393c827fba69bf72bc36b7abf921b