They''re called layouts, and are located in the app/views/layouts
folder. The layout with the same name as the controller is
automagickally applied to your views. You can override the layout
with the render or layout commands in the controller.
API docs:
http://api.rubyonrails.com/classes/ActionController/Layout/ClassMethods.html
On 12/12/05, charlie bowman
<cbowmanschool-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
wrote:> I''ve been a die hard perl user for several years, but I''m
seriously
> thinking of giving the rails thing a try. I''ve been doing a
little
> playing with it but I can''t figure out how to create a wrapper
template.
> With perl I use the template-toolkit and with it I can create a wrapper
> template that "wraps up" my content templates. The idea being
that the
> header,navbar,and footer don''t change from page to page and
there''s no
> need to cut and paste this into each template. Can I do this with ruby?
> Please say yes because I''m starting to really like rails!
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>