开发者

How do I set a template handler in Rails 3 *not* to use a layout

开发者 https://www.devze.com 2023-01-11 04:17 出处:网络
I have a rails 3 template handler and would like to configure it not to use the layout. In rails2 we would do a

I have a rails 3 template handler and would like to configure it not to use the layout. In rails2 we would do a

        ::Ac开发者_JAVA百科tionController::Base.exempt_from_layout :extension_name

But this method does not exist in Rails 3 any more. I did not find a place within the code where there is an option for a template engine not to run through the layout procedure.

Regards


The option has been deprecated and then removed.

Why do you need it? Unless you create a layout template, Rails shouldn't render the layout.

0

精彩评论

暂无评论...
验证码 换一张
取 消