method

new

rails latest stable - Class: AbstractController::Helpers::MissingHelperError

Method deprecated or moved

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

new(error, path)
public

No documentation available.

# File actionpack/lib/abstract_controller/helpers.rb, line 27
      def initialize(error, path)
        @error = error
        @path  = "helpers/#{path}.rb"
        set_backtrace error.backtrace

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