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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
171ea139761951336b844e708d1547ab?d=identicon&s=25 James B. Byrne (Guest)
on 2006-01-30 15: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"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona...

<!-- 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
start.

Regards,
Jim

--
     *** e-mail is not a secure channel ***
mailto:byrnejb.<token>@harte-lyne.ca
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.