123456789_123456789_123456789_123456789_123456789_

Exception: AbstractController::Helpers::MissingHelperError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ::LoadError, Exception
Instance Chain:
self, ::LoadError, Exception
Inherits: LoadError
Defined in: actionpack/lib/abstract_controller/helpers.rb

Constant Summary

::LoadError - Inherited

REGEXPS

Class Method Summary

Instance Method Summary

::LoadError - Inherited

#is_missing?

Returns true if the given path name (except perhaps for the “.rb” extension) is the missing file which caused the exception to be raised.

#path

Returns the path which was unable to be loaded.

Constructor Details

.new(error, path) ⇒ MissingHelperError

[ GitHub ]

  
# File 'actionpack/lib/abstract_controller/helpers.rb', line 16

def initialize(error, path)
  @error = error
  @path  = "helpers/#{path}.rb"
  set_backtrace error.backtrace

  if error.path =~ /^#{path}(\.rb)?$/
    super("Missing helper file helpers/%s.rb" % path)
  else
    raise error
  end
end