Results 1 to 4 of 4
Thread: Nested layouts and Engines
Jan 27, 2013, 21:47 #1
- Join Date
- Dec 2004
- 0 Post(s)
- 0 Thread(s)
Nested layouts and Engines
I have a main application, does some basic 'core' functions and then everything else is a mountable engine.
What I would like to do is to enclose the engine layout in the application layout. Each engine might have a different layout but I have a base 'frame' for the entire application.
Something like this
application_layout (yields entire layout)
--> engine_layout (yields engine layout with current_action html)
-- --> current_action_view (yields current action html)
I looked at nested layouts on the rails guides site and this seems like it's the answer but it's not working as expected.
Anyone know if what I'm wanting to do is possible?your brain reacts in the same way whether you are
looking at something or thinking about it...