I was lamenting the woes of all of the things needed to add a route to Discourse (I’m currently trying to add an edit route to a custom model in a plugin) and my friend said “Is there a generator for those?” And, if you’re a “normal” Ember developer, there is. But I’m unable to figure out how to convince ember to let me use it to generate a component, so I’m going to stick with finding something like it and copying it.
Well, I just spent another 10 minutes trying, and I think you’re right. When I use the rails generator for a migration, I just move it from the discourse path into the plugin, so I guess the same approach might work.
I’m often relieved–and surprised–when I discover that the practices that I’ve adopted, in what seems like isolation, end up being the same practices used by people who Know What They Are Doing.