Permalink
Browse files

Base path may be nil if template is at the root of the view path

  • Loading branch information...
josh committed Aug 25, 2008
1 parent 49859b0 commit fe2640549bfc57cd862742494198781fda07ce36
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/template_error.rb
@@ -7,7 +7,7 @@ class TemplateError < ActionViewError #:nodoc:
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

0 comments on commit fe26405

Please sign in to comment.