1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
schneems 2012-04-30 16:29:49 -05:00
parent b656134450
commit e737f142bd

View file

@ -13,3 +13,5 @@
<p>
Try running <code>rake routes</code> for more information on available routes.
</p>
<%= render :template => "rescues/_trace" %>