James Adam wrote:

- James, Great, just what I needed to know as well....

Do you have a Wiki (or something) where these snips are documented, I 
(and I'm sure others) would be happy to help.

- Jonathan

> 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


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to