-
What is the difference between
|
Beta Was this translation helpful? Give feedback.
Answered by
ElMassimo
Dec 19, 2022
Replies: 1 comment
-
Hi Mohamad! There's no difference, they are both equivalent at build time. This package is intended to make it easier to migrate applications that have a large amount of controllers, and to allow skipping the boilerplate of manually registering controllers, using the filenames as the naming convention as is typical of Rails. If you are using Vite, another advantage is that it ensures your controllers work out of the box with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ElMassimo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Mohamad!
There's no difference, they are both equivalent at build time.
This package is intended to make it easier to migrate applications that have a large amount of controllers, and to allow skipping the boilerplate of manually registering controllers, using the filenames as the naming convention as is typical of Rails.
If you are using Vite, another advantage is that it ensures your controllers work out of the box with
vite-plugin-stimulus-hmr
.