1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch/middleware/templates/rescues
schneems 37d9c44b6d Format routes as html on debug page
When someone gets a routing exception, the routes are rendered (starting in Rails 4.0). This PR brings parity between the html routes in the `rails/info/routes` path and when rendered from an exception. This is the continuation of #8521 which brought html formatted routes. 

In addition to bringing parity to the two views, we're keeping our views DRY by rendering off of the same partials. In this case Railties depends on partials provided by ActionDispatch. I'm open to alternative implementations. Ideally both views will use the same code so any improvements or updates to it will be reproduced on both.

<hr />

![](http://f.cl.ly/items/3O1D0K1v0j0i343O3T3T/Screen%20Shot%202012-12-17%20at%203.07.20%20PM.png)
2012-12-17 15:59:15 -06:00
..
_request_and_response.erb Try to convert object passed to debug_hash to hash 2012-05-05 00:49:53 -07:00
_trace.erb Remove remaining warnings on _trace by adding parenthesis to gsub arguments. 2010-09-28 16:12:07 -03:00
diagnostics.erb 1.9 hash syntax changes to docs 2012-10-31 21:19:44 +02:00
layout.erb CSS fix to prevent error output from being breaking out of body element. 2011-11-03 10:01:32 -04:00
missing_template.erb Extract ActionController rescue templates into Rescue and ShowExceptions middleware. 2009-05-02 23:02:22 -05:00
routing_error.erb Format routes as html on debug page 2012-12-17 15:59:15 -06:00
template_error.erb 1.9 hash syntax changes to docs 2012-10-31 21:19:44 +02:00
unknown_action.erb Extract ActionController rescue templates into Rescue and ShowExceptions middleware. 2009-05-02 23:02:22 -05:00