Mix.Tasks.Phoenix.Gen.Controller

Generates a Controller

mix phoenix.gen.controller resource_name action

## Command line options

* `--crud` - adds index, show, new, edit, create, update and delete actions
* `--repo` - repo to use with crud (defaults to 'YourApp.Repo')
* `--skip-view` - don't generate a view or any templates
* `--skip-route` - don't add the route for actions or --crud

## Examples

mix phoenix.gen.controller post recent --crud

Summary

run(opts)

Callback implementation of Mix.Task.run/1

Functions

run(opts)

Callback implementation of Mix.Task.run/1.