成功运行WEBrick,但出现未初始化的常量设置问题

时间:2019-04-29 07:37:13

标签: ruby-on-rails

我已经在项目中正确安装了该项目的所有引用。之后,当我运行rails s时,它成功启动了WEBrick,但是很快我收到以下错误消息。

uninitialized constant settings issue in /methods.rb:230:in 'block in constantize'

我在做什么错了?

2019-04-30 02:33:25.728754(91848)[FATAL] NameError(未初始化的常量设置):   activesupport(3.2.12)lib / active_support / inflector / methods.rb:230:in block in constantize' activesupport (3.2.12) lib/active_support/inflector/methods.rb:229:in中的每个   activesupport(3.2.12)lib / active_support / inflector / methods.rb:229:in constantize' activesupport (3.2.12) lib/active_support/core_ext/string/inflections.rb:54:in constantize'   rails_config(0.2.2)lib / rails_config / integration / rails.rb:26:in block (3 levels) in <class:Railtie>' activesupport (3.2.12) lib/active_support/callbacks.rb:418:in _ run__964710491603297511__process_action__2280112725106688481__callbacks'   activesupport(3.2.12)lib / active_support / callbacks.rb:405:in __run_callback' activesupport (3.2.12) lib/active_support/callbacks.rb:385:in _ run_process_action_callbacks'   activesupport(3.2.12)lib / active_support / callbacks.rb:81:in run_callbacks' actionpack (3.2.12) lib/abstract_controller/callbacks.rb:17:in process_action'   actionpack(3.2.12)lib / action_controller / metal / rescue.rb:29:在process_action' actionpack (3.2.12) lib/action_controller/metal/instrumentation.rb:30:in块中的process_action'   activesupport(3.2.12)lib / active_support / notifications.rb:123:in block in instrument' activesupport (3.2.12) lib/active_support/notifications/instrumenter.rb:20:in instrument'   activesupport(3.2.12)lib / active_support / notifications.rb:123:in instrument' actionpack (3.2.12) lib/action_controller/metal/instrumentation.rb:29:in process_action'   actionpack(3.2.12)lib / action_controller / metal / params_wrapper.rb:207:in process_action' activerecord (3.2.12) lib/active_record/railties/controller_runtime.rb:18:in process_action'   newrelic_rpm(3.5.4.34)lib / new_relic / agent / instrumentation / rails3 / action_controller.rb:34:在perform_action_with_newrelic_trace中的block in process_action' newrelic_rpm (3.5.4.34) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:268:in块中   newrelic_rpm(3.5.4.34)lib / new_relic / agent / method_tracer.rb:242:in trace_execution_scoped' newrelic_rpm (3.5.4.34) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:263:in perform_action_with_newrelic_trace'   newrelic_rpm(3.5.4.34)lib / new_relic / agent / instrumentation / rails3 / action_controller.rb:33:在process_action' actionpack (3.2.12) lib/abstract_controller/base.rb:121:in进程中'   actionpack(3.2.12)lib / abstract_controller / rendering.rb:45:in process' actionpack (3.2.12) lib/action_controller/metal.rb:203:in dispatch'   actionpack(3.2.12)lib / action_controller / metal / rack_delegation.rb:14:in dispatch' actionpack (3.2.12) lib/action_controller/metal.rb:246:in在行动中阻止'   actionpack(3.2.12)lib / action_dispatch / routing / route_set.rb:73:in dispatch' actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:36:in call'   actionpack(3.2.12)lib / action_dispatch / routing / mapper.rb:42:in call' journey (1.0.4) lib/journey/router.rb:68:in中的通话'   旅程(1.0.4)lib / journey / router.rb:56:in each' journey (1.0.4) lib/journey/router.rb:56:in call'   actionpack(3.2.12)lib / action_dispatch / routing / route_set.rb:601:在call' omniauth (1.4.2) lib/omniauth/strategy.rb:186:in通话中!”   omn​​iauth(1.4.2)lib / omniauth / strategy.rb:164:在call' omniauth (1.4.2) lib/omniauth/builder.rb:63:in通话中   /home/li/.rvm/gems/ruby-1.9.3-p551/bundler/gems/rubyamf-be26d0e5183c/lib/rubyamf/rails/request_processor.rb:13:in call' /home/li/.rvm/gems/ruby-1.9.3-p551/bundler/gems/rubyamf-be26d0e5183c/lib/rubyamf/request_parser.rb:31:in通话中   管理员(1.2.1)lib / warden / manager.rb:35:in block in call' warden (1.2.1) lib/warden/manager.rb:34:in catch'   管理员(1.2.1)lib / warden / manager.rb:34:in call' newrelic_rpm (3.5.4.34) lib/new_relic/rack/error_collector.rb:8:in call'   newrelic_rpm(3.5.4.34)lib / new_relic / rack / browser_monitoring.rb:12:in call' newrelic_rpm (3.5.4.34) lib/new_relic/rack/developer_mode.rb:24:in调用   request_store(1.0.5)lib / request_store / middleware.rb:9:在call' actionpack (3.2.12) lib/action_dispatch/middleware/best_standards_support.rb:17:in通话中   机架(1.4.5)lib / rack / etag.rb:23:in call' rack (1.4.5) lib/rack/conditionalget.rb:25:in call'   actionpack(3.2.12)lib / action_dispatch / middleware / head.rb:14:in call' actionpack (3.2.12) lib/action_dispatch/middleware/params_parser.rb:21:in call'   actionpack(3.2.12)lib / action_dispatch / middleware / flash.rb:242:in call' rack (1.4.5) lib/rack/session/abstract/id.rb:210:in context'   机架(1.4.5)lib / rack / session / abstract / id.rb:205:在call' actionpack (3.2.12) lib/action_dispatch/middleware/cookies.rb:341:in通话中   activerecord(3.2.12)lib / active_record / query_cache.rb:64:在call' activerecord (3.2.12) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in通话中   actionpack(3.2.12)lib / action_dispatch / middleware / callbacks.rb:28:in block in call' activesupport (3.2.12) lib/active_support/callbacks.rb:405:in _ run__962451150856234860__call__131268060707504816__callbacks'   activesupport(3.2.12)lib / active_support / callbacks.rb:405:in __run_callback' activesupport (3.2.12) lib/active_support/callbacks.rb:385:in _ run_call_callbacks'   activesupport(3.2.12)lib / active_support / callbacks.rb:81:在run_callbacks' actionpack (3.2.12) lib/action_dispatch/middleware/callbacks.rb:27:in通话中   rails-dev-tweaks(1.2.0)lib / rails_dev_tweaks / granular_autoload / middleware.rb:36:in call' actionpack (3.2.12) lib/action_dispatch/middleware/remote_ip.rb:31:in中的“   airbrake(4.1.0)lib / airbrake / rails / middleware.rb:13:in call' actionpack (3.2.12) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call'   actionpack(3.2.12)lib / action_dispatch / middleware / show_exceptions.rb:56:在call' railties (3.2.12) lib/rails/rack/logger.rb:32:in call_app'中   railties(3.2.12)lib / rails / rack / logger.rb:16:in block in call' activesupport (3.2.12) lib/active_support/tagged_logging.rb:22:in tagged'   栏杆(3.2.12)lib / rails / rack / logger.rb:16:in call' quiet_assets (1.0.2) lib/quiet_assets.rb:18:in call_with_quiet_assets'   actionpack(3.2.12)lib / action_dispatch / middleware / request_id.rb:22:在call' rack (1.4.5) lib/rack/methodoverride.rb:21:in通话中   机架(1.4.5)lib / rack / runtime.rb:17:in call' activesupport (3.2.12) lib/active_support/cache/strategy/local_cache.rb:72:in call'   机架(1.4.5)lib / rack / lock.rb:15:in call' actionpack (3.2.12) lib/action_dispatch/middleware/static.rb:62:in call'   airbrake(4.1.0)lib / airbrake / user_informer.rb:16:在_call' airbrake (4.1.0) lib/airbrake/user_informer.rb:12:in通话中   railties(3.2.12)lib / rails / engine.rb:479:in call' railties (3.2.12) lib/rails/application.rb:223:in call'   机架(1.4.5)lib / rack / content_length.rb:14:在call' railties (3.2.12) lib/rails/rack/log_tailer.rb:17:in通话中   机架(1.4.5)lib / rack / handler / webrick.rb:59:in service' /usr/lib/ruby/2.3.0/webrick/httpserver.rb:140:in service'   /usr/lib/ruby/2.3.0/webrick/httpserver.rb:96:在run' /usr/lib/ruby/2.3.0/webrick/server.rb:296:in中的start_thread块中” 2019-04-30 02:33:25.743803(91848)[INFO]由CustomUrlController#index作为HTML处理 2019-04-30 02:33:25.744570(91848)[INFO]参数:{“ url” =>“ 500”} 2019-04-30 02:33:25.746162(91848)[INFO]在1毫秒内完成了500个内部服务器错误

0 个答案:

没有答案