# File lib/merb-core/controller/mixins/render.rb, line 18 18: def _templates_for 19: @_templates_for ||= {} 20: end
Enable the default layout logic - reset the layout option.
~to_s | The layout that was previously set. |
:api: public
# File lib/merb-core/controller/mixins/render.rb, line 65 65: def default_layout 66: self.default_render_options.delete(:layout) 67: end
Return the default render options.
Hash | An options hash |
:api: public
# File lib/merb-core/controller/mixins/render.rb, line 28 28: def default_render_options 29: self._default_render_options ||= {} 30: end
Set the default layout to use or nil/false to disable layout rendering. This is a shortcut for render_options :layout => false.
layout<~to_s> | The layout that should be used for this class. |
You can override by passing :layout => true to render method.
Hash | The default render options. |
:api: public
# File lib/merb-core/controller/mixins/render.rb, line 55 55: def layout(layout) 56: self.default_render_options.update(:layout => (layout || false)) 57: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.