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
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
..
http remove a cache we do not need 2012-12-14 11:16:18 -08:00
middleware Format routes as html on debug page 2012-12-17 15:59:15 -06:00
request Merge pull request #7495 from steveklabnik/issue_7478 2012-09-01 23:42:39 -07:00
routing Revert "Merge pull request #8499 from schneems/schneems/html-route-inspector" 2012-12-14 15:44:57 -05:00
testing Cleans and removes 'Examples' tag [ci skip] 2012-12-01 15:35:04 -05:00
railtie.rb nodoc AD & AV railties classes 2012-12-01 13:12:41 -05:00
routing.rb Cleans and removes useless 'Examples' tag [ci skip] 2012-12-01 15:19:45 -05:00