If you're asking how to combine layouts and templates, have a look at this article
http://gregwillits.wordpress.com/2007/10/16/modular-page-layouts-in-ruby-on-rails/
and recently I saw this screencast which is a nice short overview on lyaouts too
-- gw