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

Ticket #5373 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] Raise error if layout file not found

Reported by: chris@ozmm.org Assigned to: David
Priority: normal Milestone:
Component: ActionPack Version:
Severity: normal Keywords:
Cc:

Description

If you do something silly in your controller such as

layout "nofile.rhtml" 

Rails will fail silently -- no message printed in the log nor to the browser. Adding a simple template assertion will catch and surface this error.

Attachments

layout_error_patch.diff (0.6 kB) - added by chris@ozmm.org on 06/13/06 09:01:43.
layout_error_fix_with_test.diff (1.5 kB) - added by chris@ozmm.org on 06/14/06 23:06:28.
This patch includes test.

Change History

06/13/06 09:01:43 changed by chris@ozmm.org

  • attachment layout_error_patch.diff added.

06/14/06 23:06:28 changed by chris@ozmm.org

  • attachment layout_error_fix_with_test.diff added.

This patch includes test.

07/05/06 02:38:55 changed by david

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

(In [4550]) Added exception handling of missing layouts (closes #5373) [chris@ozmm.org]