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