diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-08-25 15:26:26 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-08-25 15:36:11 -0500 |
commit | fe2640549bfc57cd862742494198781fda07ce36 (patch) | |
tree | 4bf13a5039d600bab1b8f498848f6efaebc16319 | |
parent | 49859b0bb1dc41dca33331f198eaf2ccf034a6b4 (diff) | |
download | rails-fe2640549bfc57cd862742494198781fda07ce36.tar.gz rails-fe2640549bfc57cd862742494198781fda07ce36.tar.bz2 rails-fe2640549bfc57cd862742494198781fda07ce36.zip |
Base path may be nil if template is at the root of the view path
-rw-r--r-- | 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 35fc07bdb2..2368662f31 100644 --- a/actionpack/lib/action_view/template_error.rb +++ b/actionpack/lib/action_view/template_error.rb @@ -7,7 +7,7 @@ module ActionView attr_reader :original_exception def initialize(template, assigns, original_exception) - @base_path = template.base_path + @base_path = template.base_path.to_s @assigns, @source, @original_exception = assigns.dup, template.source, original_exception @file_path = template.filename @backtrace = compute_backtrace |