Flowdock
method

controller_class

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ActionDispatch::Request
controller_class() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/http/request.rb, line 85
    def controller_class
      check_path_parameters!
      params = path_parameters

      if params.key?(:controller)
        controller_param = params[:controller].underscore
        params[:action] ||= 'index'
        const_name = "#{controller_param.camelize}Controller"
        ActiveSupport::Dependencies.constantize(const_name)
      else
        PASS_NOT_FOUND
      end
    end
Register or log in to add new notes.