# Article: Modular Page Layouts in Rails

**URL:** <https://www.ruby-forum.com/t/article-modular-page-layouts-in-rails/117920>\
**Category:** Rails\
**Created:** [October 22, 2007, 1:15pm UTC](https://www.ruby-forum.com/t/article-modular-page-layouts-in-rails/117920 "2007-10-22T13:15:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![S-gw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Post date:** [October 22, 2007, 1:15pm UTC](https://www.ruby-forum.com/t/article-modular-page-layouts-in-rails/117920/1 "2007-10-22T13:15:06Z")

</div>

Hey all, I’ve posted (updated) a PDF article describing in some  
detail how to go about making modular page layouts using views,  
partials, layouts, content\_for, and passing data into various display  
elements to keep them reusable and decoupled from controllers.

This is the culmination of some studying, experimenting, and asking  
several questions here the past week or two (thanks!).

I’m hoping some of you will have time to read it and le me kow  
whether you believe it’s a good representation of “how to do it” for  
the newbie crowd, or whether I have butchered it 🙂

[http://gregwillits.wordpress.com/2007/10/16/modular-page-layouts-in-](http://gregwillits.wordpress.com/2007/10/16/modular-page-layouts-in-)  
ruby-on-rails/

Thanks for any feedback you can offer.

– greg willits

---

<div class="post-metadata">

**Author:** ![S-gw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Post date:** [October 23, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/article-modular-page-layouts-in-rails/117920/2 "2007-10-23T17:50:42Z")

</div>

Hello Greg,

Great article!

Thank you!

---

<div class="post-metadata">

**Author:** ![S-gw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Post date:** [October 24, 2007, 10:22am UTC](https://www.ruby-forum.com/t/article-modular-page-layouts-in-rails/117920/3 "2007-10-24T10:22:59Z")

</div>

Greg W. wrote:

> Hey all, I’ve posted (updated) a PDF article describing in some  
> detail how to go about making modular page layouts using views,  
> partials, layouts, content\_for, and passing data into various display  
> elements to keep them reusable and decoupled from controllers.
> 
> This is the culmination of some studying, experimenting, and asking  
> several questions here the past week or two (thanks!).
> 
> I’m hoping some of you will have time to read it and le me kow  
> whether you believe it’s a good representation of “how to do it” for  
> the newbie crowd, or whether I have butchered it 🙂
> 
> [http://gregwillits.wordpress.com/2007/10/16/modular-page-layouts-in-](http://gregwillits.wordpress.com/2007/10/16/modular-page-layouts-in-)  
> ruby-on-rails/
> 
> Thanks for any feedback you can offer.
> 
> – greg willits

Hi Greg

Its a good article especially for the newbies . I appreciate your work  
and the woy of presentation with samples. I expect more articles of such  
kind from you

Thank You
