In Files

Parent

Files

Cell::View

Attributes

cell[RW]

(Not documented)

Public Instance Methods

expand_view_path(path) click to toggle source

(Not documented)

# File lib/cell/view.rb, line 25
    def expand_view_path(path)
      path = "#{cell.cell_name}/#{path}" unless path.include?('/')  
      path
    end
render(options = {}, local_assigns = {}, &block) click to toggle source

(Not documented)

# File lib/cell/view.rb, line 15
    def render(options = {}, local_assigns = {}, &block)
      if partial_path = options[:partial]
        # adds the cell name to the partial name.
        options[:partial] = expand_view_path(partial_path)
      end
      
      super(options, local_assigns, &block)
    end
try_picking_template_for_path(template_path) click to toggle source
  DISCUSS: where/how do WE set template_format (render_view_for_state)?

Tries to find the passed template in view_paths. Returns the view on success- otherwise it will throw an ActionView::MissingTemplate exception.

# File lib/cell/view.rb, line 10
    def try_picking_template_for_path(template_path)
      self.view_paths.find_template(template_path, template_format)
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.