NoMethodError: undefined method 'code=' for nil (NoMethodError) #36

Closed
opened 2026-10-10 20:11:09 +00:00 by error-bot · 0 comments
Collaborator

Glitchtip: https://errors.hoppe-dev.eu/hobbypunk/issues/9

Exception: NoMethodError: undefined method 'code=' for nil (NoMethodError)

bank_session.code = params[:code]
            ^^^^^^^
  at callback (app/controllers/app/bank/sessions_controller.rb:42)
  at send_action (action_controller/metal/basic_implicit_render.rb:8)
  at process_action (abstract_controller/base.rb:221)
  at process_action (action_controller/metal/rendering.rb:199)
  at block in AbstractController::Callbacks#process_action (abstract_controller/callbacks.rb:267)
  at block in ActiveSupport::Callbacks#run_callbacks (active_support/callbacks.rb:121)
  at Turbo.with_request_id (turbo-rails.rb:24)
  at turbo_tracking_request_id (/usr/local/bundle/ruby/4.0.0/gems/turbo-rails-2.0.23/app/controllers/concerns/turbo/request_id_tracking.rb:10)
  at block in ActiveSupport::Callbacks#run_callbacks (active_support/callbacks.rb:130)
  at with_renderer (action_text/rendering.rb:24)
  at block (4 levels) in <class:Engine> (action_text/engine.rb:72)
  at instance_exec (active_support/callbacks.rb:130)
  at block in ActiveSupport::Callbacks#run_callbacks (active_support/callbacks.rb:130)
  at set_ahoy_request_store (ahoy/controller.rb:50)
  at block in ActiveSupport::Callbacks#run_callbacks (active_support/callbacks.rb:130)
  at block in Sentry::Rails::ControllerTransaction#sentry_around_action (sentry/rails/controller_transaction.rb:23)
  at block in Sentry::Hub#with_child_span (sentry/hub.rb:153)
  at with_child_span (sentry/span.rb:236)
  at with_child_span (sentry/hub.rb:151)
  at Sentry.with_child_span (sentry-ruby.rb:562)

Reported automatically by Glitchtip.

<!-- glitchtip:9 --> **Glitchtip:** https://errors.hoppe-dev.eu/hobbypunk/issues/9 **Exception:** NoMethodError: undefined method 'code=' for nil (NoMethodError) bank_session.code = params[:code] ^^^^^^^ ``` at callback (app/controllers/app/bank/sessions_controller.rb:42) at send_action (action_controller/metal/basic_implicit_render.rb:8) at process_action (abstract_controller/base.rb:221) at process_action (action_controller/metal/rendering.rb:199) at block in AbstractController::Callbacks#process_action (abstract_controller/callbacks.rb:267) at block in ActiveSupport::Callbacks#run_callbacks (active_support/callbacks.rb:121) at Turbo.with_request_id (turbo-rails.rb:24) at turbo_tracking_request_id (/usr/local/bundle/ruby/4.0.0/gems/turbo-rails-2.0.23/app/controllers/concerns/turbo/request_id_tracking.rb:10) at block in ActiveSupport::Callbacks#run_callbacks (active_support/callbacks.rb:130) at with_renderer (action_text/rendering.rb:24) at block (4 levels) in <class:Engine> (action_text/engine.rb:72) at instance_exec (active_support/callbacks.rb:130) at block in ActiveSupport::Callbacks#run_callbacks (active_support/callbacks.rb:130) at set_ahoy_request_store (ahoy/controller.rb:50) at block in ActiveSupport::Callbacks#run_callbacks (active_support/callbacks.rb:130) at block in Sentry::Rails::ControllerTransaction#sentry_around_action (sentry/rails/controller_transaction.rb:23) at block in Sentry::Hub#with_child_span (sentry/hub.rb:153) at with_child_span (sentry/span.rb:236) at with_child_span (sentry/hub.rb:151) at Sentry.with_child_span (sentry-ruby.rb:562) ``` *Reported automatically by Glitchtip.*
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
hobbypunk/centinel#36
No description provided.