fjordllc / bootcamp

プログラマー向けEラーニングシステム
https://bootcamp.fjord.jp
MIT License
286 stars 71 forks source link

NameError: wrong constant name page Object.const_get(camel_cased_word) ^^^^^^^^^^ #8164

Open komagata opened 4 weeks ago

komagata commented 4 weeks ago

View details in Rollbar: https://app.rollbar.com/a/komagata/fix/item/Bootcamp/1752



NameError: wrong constant name page

        Object.const_get(camel_cased_word)
              ^^^^^^^^^^
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/inflector/methods.rb", line 274, in const_get
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/inflector/methods.rb", line 274, in constantize
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/core_ext/string/inflections.rb", line 74, in constantize
  File "/app/app/controllers/api/tags_controller.rb", line 37, in taggable_type
  File "/app/app/controllers/api/tags_controller.rb", line 7, in index
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/basic_implicit_render.rb", line 6, in send_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/base.rb", line 228, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/rendering.rb", line 30, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/callbacks.rb", line 42, in block in process_action
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 117, in block in run_callbacks
  File "/usr/local/bundle/gems/react-rails-3.1.1/lib/react/rails/controller_lifecycle.rb", line 33, in use_react_component_helper
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in block in run_callbacks
  File "/usr/local/bundle/gems/active_decorator-1.4.1/lib/active_decorator/view_context.rb", line 37, in block (3 levels) in <module:Filter>
  File "/usr/local/bundle/gems/active_decorator-1.4.1/lib/active_decorator/view_context.rb", line 25, in run_with
  File "/usr/local/bundle/gems/active_decorator-1.4.1/lib/active_decorator/view_context.rb", line 36, in block (2 levels) in <module:Filter>
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in instance_exec
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in block in run_callbacks
  File "/usr/local/bundle/gems/actiontext-6.1.4.7/lib/action_text/rendering.rb", line 20, in with_renderer
  File "/usr/local/bundle/gems/actiontext-6.1.4.7/lib/action_text/engine.rb", line 59, in block (4 levels) in <class:Engine>
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in instance_exec
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in block in run_callbacks
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 137, in run_callbacks
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/callbacks.rb", line 41, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/rescue.rb", line 22, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/instrumentation.rb", line 34, in block in process_action
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/notifications.rb", line 203, in block in instrument
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/notifications/instrumenter.rb", line 24, in instrument
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/notifications.rb", line 203, in instrument
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/instrumentation.rb", line 33, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/params_wrapper.rb", line 249, in process_action
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/railties/controller_runtime.rb", line 27, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/base.rb", line 165, in process
  File "/usr/local/bundle/gems/actionview-6.1.4.7/lib/action_view/rendering.rb", line 39, in process
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal.rb", line 190, in dispatch
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal.rb", line 254, in dispatch
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/routing/route_set.rb", line 50, in dispatch
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/routing/route_set.rb", line 33, in serve
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/journey/router.rb", line 50, in block in serve
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/journey/router.rb", line 32, in each
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/journey/router.rb", line 32, in serve
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/routing/route_set.rb", line 842, in call
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/strategy.rb", line 202, in call!
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/strategy.rb", line 169, in call
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/strategy.rb", line 202, in call!
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/strategy.rb", line 169, in call
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/builder.rb", line 44, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/tempfile_reaper.rb", line 15, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/etag.rb", line 27, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/conditional_get.rb", line 27, in call
  File "/usr/local/bundle/gems/rack-user_agent-0.5.3/lib/rack/user_agent.rb", line 16, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/head.rb", line 12, in call
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/http/permissions_policy.rb", line 22, in call
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/http/content_security_policy.rb", line 18, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/session/abstract/id.rb", line 266, in context
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/session/abstract/id.rb", line 260, in call
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/cookies.rb", line 689, in call
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/callbacks.rb", line 27, in block in call
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 98, in run_callbacks
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/callbacks.rb", line 26, in call
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/middleware/actionable_exceptions.rb", line 18, in call
  File "/usr/local/bundle/gems/rollbar-3.