::ActionView::Base
(Not documented)
# File lib/cell/view.rb, line 25 def expand_view_path(path) path = "#{cell.cell_name}/#{path}" unless path.include?('/') path end
(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
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.
Generated with the Darkfish Rdoc Generator 1.1.6.