class method
self.append_view_path
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.append_view_path(path)
Adds a view_path to the end of the view_paths array. If the current class has no view paths, copy them from the superclass. This change will be visible for all future requests.
ArticleController.append_view_path("views/default") ArticleController.append_view_path(["views/default", "views/custom"])
Parameters
-
pathreq
Source
# File actionpack/lib/action_controller/base.rb, line 456
def append_view_path(path)
@view_paths = superclass.view_paths.dup if @view_paths.nil?
@view_paths.push(*path)
end
Defined in actionpack/lib/action_controller/base.rb line 456
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Base