instance method
prepend_view_path
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v4.0.13Signature
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
-
pathreq
Source
# File actionpack/lib/abstract_controller/view_paths.rb, line 75
def prepend_view_path(path)
self.view_paths = Array(path) + view_paths.dup
end
Defined in actionpack/lib/abstract_controller/view_paths.rb line 75
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in AbstractController::ViewPaths::ClassMethods