diff options
author | schneems <richard.schneeman@gmail.com> | 2014-05-24 14:07:54 +0200 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2014-05-24 14:11:08 +0200 |
commit | 3915c459801ee2ce03b5ab38f2512f9317aa1d82 (patch) | |
tree | 4f2903e9a5c7ff7f779ebf8c89092cda20c85689 /activemodel/README.rdoc | |
parent | f9860fcbe2973025df6ccf4bba0431492af09575 (diff) | |
download | rails-3915c459801ee2ce03b5ab38f2512f9317aa1d82.tar.gz rails-3915c459801ee2ce03b5ab38f2512f9317aa1d82.tar.bz2 rails-3915c459801ee2ce03b5ab38f2512f9317aa1d82.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 'activemodel/README.rdoc')
0 files changed, 0 insertions, 0 deletions