class method self.new

Ruby on Rails 7.1.6

Since v7.1.6 Last seen in v7.1.6

Signature

self.new(error, path)

No documentation comment.

Parameters

error req
path req
Source
# File actionpack/lib/abstract_controller/helpers.rb, line 28
      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

Defined in actionpack/lib/abstract_controller/helpers.rb line 28 · View on GitHub · Improve this page · Find usages on GitHub

Defined in AbstractController::Helpers::DeprecatedMissingHelperError

Type at least 2 characters to search.

↑↓ navigate · open · esc close