Skip to content

Could not find generator 'stimulus_reflex:initializer' #706

Open
@dulayaustin

Description

@dulayaustin

Bug Report

Describe the bug

I have a new rails app with esbuild js bundler and install stimulus_reflex via Manual Configuration describe on the docs.
However I found out the theres no stimulus_reflex:initializer on rails generator anymore.

To Reproduce

rails g stimulus_reflex:initializer

Expected behavior

It should generate config/initializers/stimulus_reflex.rb.
Much better if app/javascript/controllers/application_controller.js will be generated as well upon initialize.

Screenshots or reproduction

> rails g stimulus_reflex:initializer
Could not find generator 'stimulus_reflex:initializer'. (Rails::Command::CorrectableNameError)
Did you mean?  stimulus_reflex
Run `bin/rails generate --help` for more options.

Versions

StimulusReflex

  • Gem: [3.5.1]
  • Node package: [3.5.1]

External tools

  • Ruby: [3.3.0]
  • Rails: [7.1.3.2]
  • Node: [21.7.1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions