Append a path to the list of view paths for this controller.
path - If a String is provided, it gets converted into the default view path. You may also provide a custom view path (see ActionView::ViewPathSet for more information)
# File lib/abstract_controller/view_paths.rb, line 40 40: def append_view_path(path) 41: self.view_paths = view_paths.dup + Array(path) 42: end
Prepend a path to the list of view paths for this controller.
path - If a String is provided, it gets converted into the default view path. You may also provide a custom view path (see ActionView::ViewPathSet for more information)
# File lib/abstract_controller/view_paths.rb, line 50 50: def prepend_view_path(path) 51: self.view_paths = Array(path) + view_paths.dup 52: end
A list of all of the default view paths for this controller.
# File lib/abstract_controller/view_paths.rb, line 55 55: def view_paths 56: _view_paths 57: end
Set the view paths.
paths - If a ViewPathSet is provided, use that; otherwise, process the parameter into a ViewPathSet.
# File lib/abstract_controller/view_paths.rb, line 64 64: def view_paths=(paths) 65: self._view_paths = ActionView::Base.process_view_paths(paths) 66: self._view_paths.freeze 67: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.