diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2014-11-24 23:10:22 +0300 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2014-11-24 23:10:22 +0300 |
commit | 47728d53aa94b50297d38e4c15441ae12b6ca9f8 (patch) | |
tree | d55da8651277afe58e5915fbb9020a577444b59a /actionpack/lib/action_dispatch/middleware/templates/rescues | |
parent | 2356714cc5447fc72998fe8a47657b04c41e6bf6 (diff) | |
parent | 92ace39692200d088ec70110b980325a27de8fac (diff) | |
download | rails-47728d53aa94b50297d38e4c15441ae12b6ca9f8.tar.gz rails-47728d53aa94b50297d38e4c15441ae12b6ca9f8.tar.bz2 rails-47728d53aa94b50297d38e4c15441ae12b6ca9f8.zip |
Merge pull request #17747 from gsamokovarov/missing-template-backtrace
Show source view and backtrace on missing template errors
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/templates/rescues')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb | 4 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb index 5c016e544e..2a65fd06ad 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb @@ -4,4 +4,8 @@ <div id="container"> <h2><%= h @exception.message %></h2> + + <%= render template: "rescues/_source" %> + <%= render template: "rescues/_trace" %> + <%= render template: "rescues/_request_and_response" %> </div> diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb index 7e9cedb95e..55dd5ddc7b 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb @@ -27,4 +27,6 @@ <%= @routes_inspector.format(ActionDispatch::Routing::HtmlTableFormatter.new(self)) %> <% end %> + + <%= render template: "rescues/_request_and_response" %> </div> |