Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Controller Layout Used Erroneously When Similar Named File Exists

#746

If I have a controller named "customers" and a file in my layouts directory called "customers.html.erb.bak" the framework will decide to use the controller layout instead of falling through to the application layout. If "customers.html.erb" does not exist, an error will be reported and the page will not load successfully.

These file names cause it to fail:

  • customers.html

  • customers.html.asdf

  • customers.html.erb.asdf

While these do not:

  • customers.asdf

  • customers

Tested on a Dreamhost server with Rails 2.0.2 and ruby 1.8.5.

Reported by atrerus · August 2nd, 2008 @ 05:38 AM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. josh
    josh
    • State changed from new to wontfix

    Try testing on edge, you shouldn't have this issue anymore.

    November 10th, 2008 @ 06:53 PM