Class Index [+]

Quicksearch

Merb::RenderMixin::ClassMethods

Public Instance Methods

_templates_for() click to toggle source
    # File lib/merb-core/controller/mixins/render.rb, line 18
18:     def _templates_for
19:       @_templates_for ||= {}
20:     end
default_layout() click to toggle source

Enable the default layout logic - reset the layout option.

Returns

~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
default_render_options() click to toggle source

Return the default render options.

Returns

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
layout(layout) click to toggle source

Set the default layout to use or nil/false to disable layout rendering. This is a shortcut for render_options :layout => false.

Parameters

layout<~to_s>

The layout that should be used for this class.

Notes

You can override by passing :layout => true to render method.

Returns

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
render_options(opts) click to toggle source

Set default render options at the class level.

Parameters

opts

An options hash

:api: public

    # File lib/merb-core/controller/mixins/render.rb, line 38
38:     def render_options(opts)
39:       self._default_render_options = opts
40:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.