instance method
prepend_view_path
Ruby on Rails 4.1.16
Since v4.1.16Signature
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 actionview/lib/action_view/view_paths.rb, line 77
def prepend_view_path(path)
self._view_paths = ActionView::PathSet.new(Array(path) + view_paths)
end
Defined in actionview/lib/action_view/view_paths.rb line 77
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::ViewPaths::ClassMethods