class method self.new

Ruby on Rails 6.1.7.10

Since v4.1.16 Last seen in v7.0.10

Available in: v4.1.16 v4.2.9 v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10

Signature

self.new(error, path)

No documentation comment.

Parameters

error req
path req
Source
# File actionpack/lib/abstract_controller/helpers.rb, line 26
      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 26 · View on GitHub · Improve this page · Find usages on GitHub

Defined in AbstractController::Helpers::MissingHelperError

Type at least 2 characters to search.

↑↓ navigate · open · esc close