diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-28 17:41:19 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-28 17:41:19 +0000 |
commit | 0ea1375d7526cd1bbd74947f292d13b83a7617e6 (patch) | |
tree | 52c79238931f2d4daf98dff55b6b1afafc8a6c0d /actionpack/lib | |
parent | 369d0543380d302fb4b4fc30d4f6d52f07f9c0b6 (diff) | |
download | rails-0ea1375d7526cd1bbd74947f292d13b83a7617e6.tar.gz rails-0ea1375d7526cd1bbd74947f292d13b83a7617e6.tar.bz2 rails-0ea1375d7526cd1bbd74947f292d13b83a7617e6.zip |
Really fix the syntax error issue
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1952 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/rescue.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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)) |