instance method
routed_controller_class
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
routed_controller_class()
Like controller_class, but returns nil when the request was not routed to a controller.
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 638
def routed_controller_class
controller_class if path_parameters[:controller]&.valid_encoding?
rescue MissingController
nil
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 638
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request