private Method

Base.find_base_path_for(template_file_name)

Returns the view path that contains the given relative template path.

Source Code

# File action_view/base.rb, line 464
def find_base_path_for(template_file_name)
  view_paths.find { |p| File.file?(File.join(p, template_file_name)) }
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.