Rails custom layouts

Hi

can any body give me the use of layouts(app/views/layouts) and

i need to write some custom layouts for ralis projects can u plz
suggest me for the same and give me samples,

regards
meer