Forum: Ruby on Rails Local extension to rails default layout generation

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
James B. Byrne (Guest)
on 2006-01-30 16:45
(Received via mailing list)
Is it possible to create a local extension to the layout generator
in rails to add the following lines of code to all layouts when
they are created?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<!-- app/views/layouts/<generated layout name here>.rhtml -->

I would like to accomplish this extension in such a fashion that it
survives future rails and ruby updates and is easily transportable
between systems.  I suspect that a "plugin" is required, but my
knowledge of how rails works and of the ruby language in general is
at present too rudimentary to give any guidance as to where to


     *** e-mail is not a secure channel ***
James B. Byrne                Harte & Lyne Limited
vox: +1 905 561 1241          9 Brockley Drive
fax: +1 905 561 0757          Hamilton, Ontario
<token> = hal                 Canada L8E 3C3
This topic is locked and can not be replied to.