instance method routed_controller_class

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close