現状
cloud9を使っていて
Ubuntuでrails sを実行すると
ActionController::RoutingError (uninitialized constant HomeController):
とエラーが出ます。
問題のコード
ActionController::RoutingError (uninitialized constant HomeController): activesupport (6.0.2.2) lib/active_support/inflector/methods.rb:282:in `const_get' activesupport (6.0.2.2) lib/active_support/inflector/methods.rb:282:in `block in constantize' activesupport (6.0.2.2) lib/active_support/inflector/methods.rb:280:in `each' activesupport (6.0.2.2) lib/active_support/inflector/methods.rb:280:in `inject' activesupport (6.0.2.2) lib/active_support/inflector/methods.rb:280:in `constantize' activesupport (6.0.2.2) lib/active_support/dependencies/zeitwerk_integration.rb:19:in `constantize' actionpack (6.0.2.2) lib/action_dispatch/http/request.rb:88:in `controller_class_for' actionpack (6.0.2.2) lib/action_dispatch/http/request.rb:81:in `controller_class' actionpack (6.0.2.2) lib/action_dispatch/routing/route_set.rb:45:in `controller' actionpack (6.0.2.2) lib/action_dispatch/routing/route_set.rb:31:in `serve' actionpack (6.0.2.2) lib/action_dispatch/journey/router.rb:49:in `block in serve' actionpack (6.0.2.2) lib/action_dispatch/journey/router.rb:32:in `each' actionpack (6.0.2.2) lib/action_dispatch/journey/router.rb:32:in `serve' actionpack (6.0.2.2) lib/action_dispatch/routing/route_set.rb:837:in `call' warden (1.2.8) lib/warden/manager.rb:36:in `block in call' warden (1.2.8) lib/warden/manager.rb:34:in `catch' warden (1.2.8) lib/warden/manager.rb:34:in `call' rack (2.2.2) lib/rack/tempfile_reaper.rb:15:in `call' rack (2.2.2) lib/rack/etag.rb:27:in `call' rack (2.2.2) lib/rack/conditional_get.rb:27:in `call' rack (2.2.2) lib/rack/head.rb:12:in `call' actionpack (6.0.2.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call' rack (2.2.2) lib/rack/session/abstract/id.rb:266:in `context' rack (2.2.2) lib/rack/session/abstract/id.rb:260:in `call' actionpack (6.0.2.2) lib/action_dispatch/middleware/cookies.rb:648:in `call' activerecord (6.0.2.2) lib/active_record/migration.rb:567:in `call' actionpack (6.0.2.2) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call' activesupport (6.0.2.2) lib/active_support/callbacks.rb:101:in `run_callbacks' actionpack (6.0.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call' actionpack (6.0.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.0.2.2) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call' actionpack (6.0.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call' web-console (4.0.1) lib/web_console/middleware.rb:132:in `call_app' web-console (4.0.1) lib/web_console/middleware.rb:19:in `block in call' web-console (4.0.1) lib/web_console/middleware.rb:17:in `catch' web-console (4.0.1) lib/web_console/middleware.rb:17:in `call' actionpack (6.0.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' railties (6.0.2.2) lib/rails/rack/logger.rb:38:in `call_app' railties (6.0.2.2) lib/rails/rack/logger.rb:26:in `block in call' activesupport (6.0.2.2) lib/active_support/tagged_logging.rb:80:in `block in tagged' activesupport (6.0.2.2) lib/active_support/tagged_logging.rb:28:in `tagged' activesupport (6.0.2.2) lib/active_support/tagged_logging.rb:80:in `tagged' railties (6.0.2.2) lib/rails/rack/logger.rb:26:in `call' sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' actionpack (6.0.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' actionpack (6.0.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call' rack (2.2.2) lib/rack/method_override.rb:24:in `call' rack (2.2.2) lib/rack/runtime.rb:22:in `call' activesupport (6.0.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' actionpack (6.0.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.0.2.2) lib/action_dispatch/middleware/static.rb:126:in `call' rack (2.2.2) lib/rack/sendfile.rb:110:in `call' actionpack (6.0.2.2) lib/action_dispatch/middleware/host_authorization.rb:83:in `call' webpacker (4.2.2) lib/webpacker/dev_server_proxy.rb:23:in `perform_request' rack-proxy (0.6.5) lib/rack/proxy.rb:57:in `call' railties (6.0.2.2) lib/rails/engine.rb:526:in `call' puma (4.3.3) lib/puma/configuration.rb:228:in `call' puma (4.3.3) lib/puma/server.rb:682:in `handle_request' puma (4.3.3) lib/puma/server.rb:472:in `process_client' puma (4.3.3) lib/puma/server.rb:328:in `block in run' puma (4.3.3) lib/puma/thread_pool.rb:134:in `block in spawn_thread'
あなたの回答
tips
プレビュー