Browse files

Add backtrace to development routing error page

If a user gets a routing error due to a view helper such as using user_path without an :id they must go to their logs to see the backtrace. By adding in the trace template, a user can see which line the error occurred on without leaving the browser.

When a routing error occurs outside of the view the application trace will be blank and will not confuse developers.
  • Loading branch information...
1 parent b656134 commit e737f142bd102b4c464481ab685cad2a00ee022e @schneems schneems committed Apr 30, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
@@ -12,4 +12,6 @@
<% end %>
Try running <code>rake routes</code> for more information on available routes.
+<%= render :template => "rescues/_trace" %>

0 comments on commit e737f14

Please sign in to comment.