instance method
append_view_path
Ruby on Rails 7.0.10
Since v4.1.16Signature
append_view_path(path)
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::PathSet for more information)
Parameters
-
pathreq
Source
# File actionview/lib/action_view/view_paths.rb, line 37
def append_view_path(path)
self._view_paths = view_paths + Array(path)
end
Defined in actionview/lib/action_view/view_paths.rb line 37
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::ViewPaths::ClassMethods