Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8454 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] rescue missing templates & prevent WSOD

Reported by: Catfish Assigned to: core
Priority: normal Milestone: 1.x
Component: ActionPack Version: edge
Severity: normal Keywords:
Cc:

Description

render :partial with a missing file results in a white screen of death : it raises a TemplateError, then fails to construct the error page when it tries to read from the missing file in source_extract.

This patch checks for the file and raises an ActionViewError if it's not there.

Attachments

missing_template_rescue.diff (1.5 kB) - added by Catfish on 05/24/07 12:38:50.

Change History

05/24/07 12:38:50 changed by Catfish

  • attachment missing_template_rescue.diff added.

05/24/07 16:42:13 changed by rick

  • status changed from new to closed.
  • resolution set to fixed.

(In [6826]) catch possible WSOD when trying to render a missing partial. Closes #8454 [Catfish]