Newly created Stimulus controllers not loading

@ccuilla Christopher Cuilla
Sat, 03 Jan 2026 01:38:42 +0000

I suspect this may have something to do with the content_security_policy in config/initializers/content_security_policy.rb where these are set:

  config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
  config.content_security_policy_nonce_directives = %w(script-src style-src)

But what’s odd is that even when I completely turn off the CSP, it still doesn’t work.