instance method
prepend_view_path
Ruby on Rails 8.0.4
Since v4.1.16Signature
prepend_view_path(path)
Prepend a path to the list of view paths for the current LookupContext.
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 113
def prepend_view_path(path)
lookup_context.prepend_view_paths(self.class._build_view_paths(path))
end
Defined in actionview/lib/action_view/view_paths.rb line 113
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::ViewPaths