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.
精彩评论