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.

Custom Template Handlers and View Eager Loading

#677

Any template handlers installed as either plugins or gems register AFTER the views have been eager loaded, effectively serving them up as ERB later ...

http://github.com/methodmissing/...

Reported by Lourens Naudé · July 23rd, 2008 @ 05:02 AM

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

Activity

  1. josh
    josh
    • State changed from new to open
    • Assigned user set to josh

    Duh, I swear I committed that already.

    July 23rd, 2008 @ 06:07 AM

  2. josh
    josh
    • State changed from open to wontfix

    Actually won't fix this. Plugins rely on views paths to be ready before they run.

    ActionController::Base.view_paths << "plugin/views"
    

    We need to work something out to eager load the view paths later or have the handler register reload these paths.

    July 23rd, 2008 @ 04:25 PM