Skip to content


Subversion checkout URL

You can clone with
Download ZIP
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...
commit e737f142bd102b4c464481ab685cad2a00ee022e 1 parent b656134
@schneems schneems authored
4 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" %>
Please sign in to comment.
Something went wrong with that request. Please try again.