Layout not coming in tests

Hi Champs,

I am not able to see the layout page code in test.log? I have design
like this:
TOP
LEFT Layout RIGHT
I am rendering this left panel and right panel both as well as based on
conditions rendering Layout. Now, when i ran my test it gives me nothing
at the layout page. Strangely, these LEFT, RIGHT and layout are in same
div… Is there ant solution to it … ?

Can you post any code?

Besides posting code, make sure when you create scaffolds, that you
remove the default layout that is created for that particular
controller’s views. This is probably the biggest mistake most people
make when having issues with layouts.

Thanks for your replies champs… I have resolved it … The problem was
that in my layouts stating page i have included html comments… So i
removed them and it worked for me … :slight_smile:

Cheers …

Alpha B. wrote:

Besides posting code, make sure when you create scaffolds, that you
remove the default layout that is created for that particular
controller’s views. This is probably the biggest mistake most people
make when having issues with layouts.