Or alternatively, use the code-mixing feature. Create your own layout in /app/views/layouts/whatever.rhtml, and then if you want it to be used everywhere, set it in your /app/controllers/application.rb file. If you want to be able to use your custom layout on only specific controllers from within an engine, just create the correctly-named controller in your /app/controllers directory, i.e.
/app/controllers/user_controller.rb class UserController < ApplicationController layout :whatever end ... it should be that easy. - james On 1/29/06, Nathaniel S. H. Brown <[EMAIL PROTECTED]> wrote: > Create a layout in app/views/layouts/application.rhtml which will wrap > around the default views for each of the engines. > > -Nb > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Nathaniel S. H. Brown http://nshb.net > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > > Behalf Of Piotr Usewicz > > Sent: January 29, 2006 8:44 AM > > To: [email protected] > > Subject: [Engine-users] How to use layout with LoginEngine > > (or UserEngine)views? > > > > Hi > > > > How to use layout with LoginEngine (or UserEngine) views > > without overwriting the engine files? > > > > Peter > > _______________________________________________ > > engine-users mailing list > > [email protected] > > http://lists.rails-engines.org/listinfo.cgi/engine-users-rails > -engines.org > > > > _______________________________________________ > engine-users mailing list > [email protected] > http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org > _______________________________________________ engine-users mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
