Theocacao
Leopard
Design Element
Comment on "Layouts Ignored in Rails Controllers"
by Chuck — Jan 09
Well that did it. I'm surprised the explicit call doesn't override the filesystem contents, though.

According to the documentation, explicitly setting a layout will override any automatic layout choice for that class, but a parent class's layout will not override a child's layout.

If you want to explicitly extend a class's layout to all of its subclasses, you should be able to do that with the inherited method. The way Rails does it seems most flexible to me, though.
Back to "Layouts Ignored in Rails Controllers"
Design Element

Copyright © Scott Stevenson 2004-2015