From the phx docs:
The first argument is the context module followed by the schema module and its plural name (used as the schema table name). How do you deal with the spec (requirement?) above, when you don’t want/need to use a schema, nor having the need for models (
Can’t get my head about the “overhead” introduced by this:
...followed by the schema module and its plural name, in the scenario described above.
Here’s what I do, in this case:
$ mix phx.gen.html NoNeed Media uploads --no-model --no-schema --no-context
But it feels unnecessary.
How are you guys using this generator (and others) in schema/model-less situations? Editing the files to remove the references to Ecto & Co,
git clean .., etc?
The advice I am receiving most often, is: don’t use the generators.