public Method

Base.append_view_path(path)

Adds a view_path to the end of the view_paths array. This change affects the current request only.

@template.append_view_path("views/default")
@template.append_view_path(["views/default", "views/custom"])

Source Code

# File action_view/base.rb, line 440
def append_view_path(path)
  @view_paths.push(*path)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.