# Page module & not displaying it

**URL:** <https://www.ruby-forum.com/t/page-module-not-displaying-it/114319>\
**Category:** Rails\
**Created:** [September 11, 2007, 10:55am UTC](https://www.ruby-forum.com/t/page-module-not-displaying-it/114319 "2007-09-11T10:55:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [September 11, 2007, 10:55am UTC](https://www.ruby-forum.com/t/page-module-not-displaying-it/114319/1 "2007-09-11T10:55:22Z")

</div>

Hi all,

I’ve created this design with a big content-div on the left an some  
small div’s on the right. These div’s on the right contain  
“page-modules” that show up on some of the pages. But on some pages (for  
example the loginscreen) these modules won’t get filled, so they should  
disappear. That way the big content div will take up the whole screen.

What’s the best way to make these page-modules and to hide them? If a  
module doesn’t get loaded, the div in the main layout should vanish, or  
at least be displayed as :none.

Thanks in advance!
