diff options
| author | schneems <richard.schneeman@gmail.com> | 2014-05-24 14:28:50 +0200 | 
|---|---|---|
| committer | schneems <richard.schneeman@gmail.com> | 2014-05-26 10:11:07 -0500 | 
| commit | e83ce84ef991f06d15d66dce27f06e01477b617e (patch) | |
| tree | c0bdf6dd5ee7c0d10d5f19665260e37461dd27af /guides/code/getting_started/vendor | |
| parent | ec88d6861a81e5d7402660fb141f75f0aab86a4a (diff) | |
| download | rails-e83ce84ef991f06d15d66dce27f06e01477b617e.tar.gz rails-e83ce84ef991f06d15d66dce27f06e01477b617e.tar.bz2 rails-e83ce84ef991f06d15d66dce27f06e01477b617e.zip  | |
print generators on failed generate
Let's say we just ran:
```
$ rails g migrate add_click_to_issue_assignment
```
We will get an error that looks like:
```
Could not find generator migrate.
```
This patch adds all existing migrations to the output to make it easier for a developer to find a valid migration.
```
Could not find generator "migrate". Please select a valid generator:
Rails:
  assets
  controller
  generator
  helper
  integration_test
  mailer
  migration
  model
  resource
  scaffold
  scaffold_controller
  task
```
It would be nice to do some spelling detection and suggest alternatives, but for now this should  help.
Diffstat (limited to 'guides/code/getting_started/vendor')
0 files changed, 0 insertions, 0 deletions
