Mix.Tasks.Phoenix.Gen.Html
Generates a Phoenix resource.
mix phoenix.gen.html User users name:string age:integer
The first argument is the module name followed by its plural name (used for resources and schema).
The generated resource will contain:
- a model in web/models
- a view in web/views
- a controller in web/controllers
- a migration file for the repository
- default CRUD templates in web/templates
Read the documentation for phoenix.gen.model
for more
information on attributes and namespaced resources.
Summary↑
run(args) | Callback implementation of |
Functions
Callback implementation of Mix.Task.run/1
.