case of the missing layout

After a bit of refactoring of one of my controllers in a Rails3 app, the layout mysteriously disappeared, with

Rendered vendor/plugins/active_scaffold/frontends/default/views/list.html.erb (188.5ms)

replacing

Rendered vendor/plugins/active_scaffold/frontends/default/views/list.html.erb within layouts/application (192.1ms)

in the Rails debug output. Turned out to be a simple error – I added a routine to initialize some instance variables and forgot the ’super’ at the end to call the parent class initializer:

def initialize
   ... my instance vars ...
   super
end

One Comment

  1. tom myer says:

    puh… thanks for sharing, as I entered exactly the same error :)

Leave a Reply