In the Ember cli docs it states that you can specify the --type option when generating a controller.
From the docs at http://www.ember-cli.com/#detailed-list-of-blueprints-and-their-use
- Generates a Controller of a given name and type, with accompanying test.
- Options
- Type
- Basic
- Default
- Object
- Array
- Type
ember generate controller users --type array
I have ember-cli 0.1.3 installed.
Running:
ember generate controller users --type array
says:
The option '--type' is not supported by the generate command. Run ember generate --help for a list of supported options.
running ember help generate:
...
controller <name>
Generates a controller of the given type.
...
does not specific that the --type option can be specified.
- This appears to be added here ember-cli/ember-cli#1498
- From this issue: ember-cli/ember-cli#1391
Tracking this down.
From the 0.1.3 changelog: "As part of the Ember 2.0 push remove controller types."
https://github.com/stefanpenner/ember-cli/releases/tag/v0.1.3
Looking for the code...