Rails 4 now raises ActionController::UrlGenerationError

This is the commit in Rails
https://github.com/rails/rails/commit/db06d128