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::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_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::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
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 55
55:       def view_paths
56:         _view_paths
57:       end
view_paths=(paths) click to toggle source

Set the view paths.

Parameters

  • 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.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.