public Method

TemplateFinder.extract_base_path_from(full_path)

Returns the view path that the full path resides in.

Source Code

# File action_view/template_finder.rb, line 120
def extract_base_path_from(full_path)
  @view_paths.find { |p| full_path[0..p.size - 1] == p }
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.