Skip to content

Instantly share code, notes, and snippets.

@wacko
Created February 14, 2014 15:49
Show Gist options
  • Select an option

  • Save wacko/9003396 to your computer and use it in GitHub Desktop.

Select an option

Save wacko/9003396 to your computer and use it in GitHub Desktop.
Rails freezes when trying to generate a broken route
# Related: https://github.com/rails/rails/issues/1525#issuecomment-1782439
# Rails freezes when
module ActionDispatch
module Routing
class RouteSet
def inspect
# The solution is... to throw a random exception (to halt the normal flow, I think)
wtf!
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment