diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index 69db2772bb..f6885fa292 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -278,6 +278,10 @@ module ActionView #:nodoc: template_source = nil # Don't read the source until we know that it is required + if template_file_name.blank? + raise ActionViewError, "Couldn't find template file for #{template_path} in #{@view_paths.inspect}" + end + begin render_template(template_extension, template_source, template_file_name, local_assigns) rescue Exception => e |