From 0ea1375d7526cd1bbd74947f292d13b83a7617e6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 28 Jul 2005 17:41:19 +0000 Subject: Really fix the syntax error issue git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1952 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/rescue.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/rescue.rb b/actionpack/lib/action_controller/rescue.rb index fd66b0cbf6..c70357a500 100644 --- a/actionpack/lib/action_controller/rescue.rb +++ b/actionpack/lib/action_controller/rescue.rb @@ -65,8 +65,9 @@ module ActionController #:nodoc: # Renders a detailed diagnostics screen on action exceptions. def rescue_action_locally(exception) + add_variables_to_assigns @template.instance_variable_set("@exception", exception) - @template.instance_variable_set("@rescues_path", File.dirname(__FILE__) + "/templates/rescues/") + @template.instance_variable_set("@rescues_path", File.dirname(__FILE__) + "/templates/rescues/") @template.send(:assign_variables_from_controller) @template.instance_variable_set("@contents", @template.render_file(template_path_for_local_rescue(exception), false)) -- cgit v1.2.3