Changeset 6506
- Timestamp:
- 04/08/07 16:53:37 (3 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_view/base.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r6505 r6506 1 1 *SVN* 2 3 * Fix WSOD due to modification of a formatted template extension so that requests to templates like 'foo.html.erb' fail on the second hit. [Rick] 2 4 3 5 * Fix WSOD when template compilation fails [Rick] trunk/actionpack/lib/action_view/base.rb
r6505 r6506 253 253 template_extension = pick_template_extension(template_path).to_s 254 254 template_file_name = full_template_path(template_path, template_extension) 255 template_extension .gsub!(/^\w+\./, '') # strip off any formats255 template_extension = template_extension.gsub(/^\w+\./, '') # strip off any formats 256 256 end 257 257 else … … 268 268 raise e 269 269 else 270 raise TemplateError.new(find_base_path_for("#{template_path_without_extension}.#{template_extension}") , template_file_name, @assigns, template_source, e)270 raise TemplateError.new(find_base_path_for("#{template_path_without_extension}.#{template_extension}") || view_paths.first, template_file_name, @assigns, template_source, e) 271 271 end 272 272 end … … 583 583 end 584 584 585 raise TemplateError.new(extract_base_path_from(file_name) || @view_paths.first, file_name || template, @assigns, template, e)585 raise TemplateError.new(extract_base_path_from(file_name) || view_paths.first, file_name || template, @assigns, template, e) 586 586 end 587 587