123456789_123456789_123456789_123456789_123456789_

Exception: AbstractController::Helpers::MissingHelperError

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

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.

::Exception - Inherited

Constructor Details

.new(error, path) ⇒ MissingHelperError

[ GitHub ]

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

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