proxy fails with Rails 4.2