Adds a view_path to the front of the view_paths array. This change affects the current request only.
self.prepend_view_path("views/default") self.prepend_view_path(["views/default", "views/custom"])
Source Code
# File action_controller/base.rb, line 663 def prepend_view_path(path) @template.finder.prepend_view_path(path) # Mutex needed end
<code/>and<pre/>for code samples.