Rails would benefit from a canonical more logical locating of folders and files in Webpacker. I followed several articles and not knowing what I was doing, now have this, some of which needs to be refactored, but it works and I spent enough time on in.
Second this one in particular. The default app directory gives me a pretty good starting point for me to organise most of my Rails code. app/javascript feels like an intimidating blank slate.
Sprockets had its drawbacks, but the structure it provided felt pretty intuitive and Rails-y
Based on other posts and blogs I’ve changed to /app/webpacker/ as the folder. As well as being more logical, IMHO; a beneficial side affect (although trivial) is that now /views and /webpacker are right next to each other which helps in text editors.
Now we need to find another name for controller, so all four (MVC and webpacker) are together. Kidding.