In Rails there are individual generator commands for every part of our MVC app, like rails g model, rails g controller etc. And devs tends to recommend these commands instead of full-fleged rails g scaffold command. They said, never use scaffold for “real” app.
And here, in Phoenix… There’s only one generator command for HTML based app, which is phoenix.gen.html. Correct me if I’m wrong, but I didn’t see any other individual generator for this purpose.
So, it’s that okay I use this one-for-all command for “real” app? Or should I just ignore this command completely and write everything manually?
Adding some cents to it: a very unknown feature is the ability to override the templates for the generated models, views, controllers and templates. Which you can use at your favor, without the need to build your own generator.
Sorry, looking to my answer, it really seemed like a very difficult thing to do. What I was saying is that, you can create a file priv/templates/phoenix.gen.html/controller.ex and this file will be used to generate the controller in the task mix phoenix.gen.html.
You can see the files in this folder for an example of which templates you can edit this way.