You can clone with
HTTPS or Subversion.
I believe we usually do this to ignore client errors (mistyping the URL, etc.)
rescue_from ActionController::RoutingError, with: :render_404
But ActionController::UrlGenerationError inherits from ActionController::RoutingError and it gets swallowed as well, however it is actually a server / code error. It shouldn't be ignored. Maybe ActionController::RoutingError is too generic.
It's best if we had clearer super-classes like ServerError for 5xxx or ClientError for 4xx, etc.
I got bit by this. I think UrlGenerationError should just not inherit from RoutingError and trigger a 500.
This issue has been automatically marked as stale because it has not been commented on for at least
The resources of the Rails team are limited, and so we are asking for your help.
If you can still reproduce this error on the 4-1-stable, 4-0-stable branches or on master,
please reply with all of the information you have about it in order to keep the issue open.
Thank you for all your contributions.
Fixed in #16229
@pixeltrix can you close this issue?