plugins/adva_context_templates/config/initializers/section.rb
# Template and layout can be specified as full template names like "sections/home"
# and 'layouts/simple'. Both can also use * as a wildchard for the current action
# name. E.g. "sections/*" will become "sections/show" when the current action is
# :show. The template/" and "layout/" (for layout) subdirectories can be given or
# omitted, thus "templates/sections/home" and "sections/home" are identical.
Template and layout can be specified as full template names like "sections/home"
and 'layouts/simple'. Both can also use * as a wildchard for the current action
name.
Template and layout can be specified as full template names like " sections / home " and ' layouts / simple ' . Both can also use * as a wildchard for the current action name .
def template_options(action)
      @template_options ||= {}
      @template_options[action] ||= [:layout, :template].inject({}) do |options, type|
        option = template_option(type, action)
        options[type] = option unless option.blank?
        options
      end
    end
def template_options ( action ) @template_options ||= { } @template_options [ action ] ||= [ :layout , :template ] . inject ( { } ) do | options , type | option = template_option ( type , action ) options [ type ] = option unless option . blank? options end end
Template and layout can be specified as full template names like "sections/home"
and 'layouts/simple'.
Template and layout can be specified as full template names like " sections / home " and ' layouts / simple ' .
action