private Method

TemplateError.strip_base_path(path)

There's no documentation for this item.

Source Code

# File action_view/template_error.rb, line 90
def strip_base_path(path)
  stripped_path = File.expand_path(path).gsub(@base_path, "")
  stripped_path.gsub!(/^#{Regexp.escape File.expand_path(RAILS_ROOT)}/, '') if defined?(RAILS_ROOT)
  stripped_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.