Method: AbstractController::ViewPaths::ClassMethods#append_view_path

Defined in:
lib/abstract_controller/view_paths.rb

#append_view_path(path) ⇒ Object

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::ViewPathSet for more information)



40
41
42
# File 'lib/abstract_controller/view_paths.rb', line 40

def append_view_path(path)
  self.view_paths = view_paths.dup + Array(path)
end