The following is my application layout file
.container_12.clearfix
= render :partial => 'shared/flashes'
.grid_8
= render :partial => 'shared/search'
= yield
.grid_4
= yield(:sidebar)
It has to grids, one for content and another for sidebar. Now I'm creating a login page in which I don't want to show my sidebar(just the single grid. I can simply create new layout with the .grid_12 div as the single grid.
But this leaves me with 2 app layouts. How can I make the same application layout conditional to yield sidebar?
If with sidebar, it would be same as above else just a single .grid_12 like the one below
.container_12.clearfix
= render :partial => 'shared/flashes'
.grid_12
= render :partial => 'shared/search'
= yield