I have a simple question that I'm sure will be painful to answer for
some of you experts, but I thank you for bearing with me...
I want a simple 5-page website. I have a custom header consisting of a
simple banner and horizontal navbar underneath it. I'd like this to
stay the same through every page. Now some of my pages are interactive
with the user like shopping carts etc, but some are static, like a
current news section. I made a controller for each page, so that each
page would get a View associated with it. The way I have my pages
written now, is that the code for the banner and navbar appear on the
top of each individual page.rhtml in the /views/layouts section, and
then each page has its individual content on its respective
The main problem I see, is that if that header changes, I have to go
into each individual layout and change it, and I know thats definitely
not the way to do it, but I can't figure out how to render that code
at the top of each layout...
Any help is greatly appreciated.