From 2181adad8f3521cc1246794a98895e847e8c3183 Mon Sep 17 00:00:00 2001 From: Claudio Poli Date: Sat, 20 Sep 2008 23:09:40 +0200 Subject: [PATCH] Fixed missing template paths on exception --- actionpack/lib/action_view/template_error.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/actionpack/lib/action_view/template_error.rb b/actionpack/lib/action_view/template_error.rb index 2368662..706b2f0 100644 --- a/actionpack/lib/action_view/template_error.rb +++ b/actionpack/lib/action_view/template_error.rb @@ -89,7 +89,7 @@ module ActionView end def strip_base_path(path) - stripped_path = File.expand_path(path).gsub(@base_path, "") + stripped_path = File.expand_path(path) stripped_path.gsub!(/^#{Regexp.escape File.expand_path(RAILS_ROOT)}/, '') if defined?(RAILS_ROOT) stripped_path end -- 1.5.6.2