You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to documentation, "when an identifier is composed of more than one word, write the words in kebab-case (i.e., by using dashes: date-picker, list-item)." Therefore, the generated help text in the controller should read:
// Connects to data-controller="hello-world"
Actual behavior
Auto-generated help text in the controller incorrectly reads:
// Connects to data-controller="hello_world"
Using this format data-controller="hello_world" in your view results in the following error
Generated comment doesn't compensate for underscored controller filenames, which are acceptable according to the documentation. "In filenames, separate multiple words using either underscores or dashes (snake_case or kebab-case: controllers/date_picker_controller.js, controllers/list-item-controller.js)."
System configuration
Rails version: Rails 7.0.0.alpha2
Ruby version: ruby 3.0.1p64
Stimulus-rails version: 0.5.4
Stimulus version: 3.0.0-beta.2
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Expected behavior
According to documentation, "when an identifier is composed of more than one word, write the words in kebab-case (i.e., by using dashes: date-picker, list-item)." Therefore, the generated help text in the controller should read:
// Connects to data-controller="hello-world"
Actual behavior
Auto-generated help text in the controller incorrectly reads:
// Connects to data-controller="hello_world"
Using this format
data-controller="hello_world"
in your view results in the following errorGenerated comment doesn't compensate for underscored controller filenames, which are acceptable according to the documentation. "In filenames, separate multiple words using either underscores or dashes (snake_case or kebab-case: controllers/date_picker_controller.js, controllers/list-item-controller.js)."
System configuration
Rails version: Rails 7.0.0.alpha2
Ruby version: ruby 3.0.1p64
Stimulus-rails version: 0.5.4
Stimulus version: 3.0.0-beta.2
The text was updated successfully, but these errors were encountered: