uninitialized constant HomeController
You have root 'home#index', module: 'web'
and as you moved your controller under the web, the class name of the controller should be prefixed with module name like Web::
class Web::HomeController
end
OR
If you wish not to prefix with Web::
module, you can just change
root 'home#index', module: 'web'
to
root 'home#index', path: '/web/home'
For more info read Controller namespacing
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.