Class Index [+]

Quicksearch

AbstractController::ViewPaths::ClassMethods

Public Instance Methods

append_view_path(path) click to toggle source

Append a path to the list of view paths for this controller.

Parameters

  • path - If a String is provided, it gets converted into the default view path. You may also provide a custom view path (see ActionView::PathSet for more information)

    # File lib/abstract_controller/view_paths.rb, line 67
67:       def append_view_path(path)
68:         self._view_paths = view_paths + Array(path)
69:       end
parent_prefixes() click to toggle source
    # File lib/abstract_controller/view_paths.rb, line 17
17:       def parent_prefixes
18:         @parent_prefixes ||= begin
19:           parent_controller = superclass
20:           prefixes = []
21: 
22:           until parent_controller.abstract?
23:             prefixes << parent_controller.controller_path
24:             parent_controller = parent_controller.superclass
25:           end
26: 
27:           prefixes
28:         end
29:       end
prepend_view_path(path) click to toggle source

Prepend a path to the list of view paths for this controller.

Parameters

  • path - If a String is provided, it gets converted into the default view path. You may also provide a custom view path (see ActionView::PathSet for more information)

    # File lib/abstract_controller/view_paths.rb, line 77
77:       def prepend_view_path(path)
78:         self._view_paths = ActionView::PathSet.new(Array(path) + view_paths)
79:       end
view_paths() click to toggle source

A list of all of the default view paths for this controller.

    # File lib/abstract_controller/view_paths.rb, line 82
82:       def view_paths
83:         _view_paths
84:       end
view_paths=(paths) click to toggle source

Set the view paths.

Parameters

  • paths - If a PathSet is provided, use that; otherwise, process the parameter into a PathSet.

    # File lib/abstract_controller/view_paths.rb, line 91
91:       def view_paths=(paths)
92:         self._view_paths = ActionView::PathSet.new(Array.wrap(paths))
93:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.