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:
parent
b656134450
commit
e737f142bd
1 changed files with 3 additions and 1 deletions
|
@ -13,3 +13,5 @@
|
|||
<p>
|
||||
Try running <code>rake routes</code> for more information on available routes.
|
||||
</p>
|
||||
|
||||
<%= render :template => "rescues/_trace" %>
|
||||
|
|
Loading…
Reference in a new issue