instance method prepend_view_path

Ruby on Rails 3.2.22.5

Since v3.0.20 Last seen in v4.0.13

Available in: v3.0.20 v3.1.12 v3.2.22.5 v4.0.13

Signature

prepend_view_path(path)

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)

Parameters

path req
Source
# File actionpack/lib/abstract_controller/view_paths.rb, line 77
      def prepend_view_path(path)
        self._view_paths = ActionView::PathSet.new(Array(path) + view_paths)
      end

Defined in actionpack/lib/abstract_controller/view_paths.rb line 77 · View on GitHub · Improve this page · Find usages on GitHub

Defined in AbstractController::ViewPaths::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close