ruby – Rails: constant method not initialized by controller type

I just started my tracks. I'm trying to define routes but the format of my controller is underlined. Therefore, I do not know how to write route.

This is my controller file name:

This is my route file

Rails.application.routes.draw do

# For more details on the DSL available in this file, see
get & # 39; type_method / index & # 39;
root_mode_method # index & # 39;


The result is incorrect:
routing error
Constant uninitialized MethodTypeController