class AbstractController::Helpers::MissingHelperError - actionpack-4.2.4 Documentation

# class AbstractController::Helpers::MissingHelperError

### Public Class Methods

new(error, path) click to toggle source
Calls superclass method

    # File 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