class method
self.new
Ruby on Rails 4.0.13
Since v4.0.13 Last seen in v4.0.13Signature
self.new(error, path)
No documentation comment.
Parameters
-
errorreq -
pathreq
Source
# File actionpack/lib/abstract_controller/helpers.rb, line 149
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
Defined in actionpack/lib/abstract_controller/helpers.rb line 149
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in AbstractController::Helpers::ClassMethods::MissingHelperError