method

strip_base_path

rails latest stable - Class: ActionView::TemplateError

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

strip_base_path(path)
private

No documentation available.

# File actionpack/lib/action_view/template_error.rb, line 91
      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