mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
72f45ba292
When someone types in a generator command it currently outputs all generators. Instead we can attempt to find a subtle mis-spelling by running all generator names through a levenshtein_distance algorithm provided by rubygems. So now a failure looks like this: ```ruby $ rails generate migratioooons Could not find generator 'migratioooons'. Maybe you meant 'migration' or 'integration_test' or 'generator' Run `rails generate --help` for more options. ``` If the suggestions are bad we leave the user with the hint to run `rails generate --help` to see all commands. |
||
---|---|---|
.. | ||
application | ||
commands | ||
configuration | ||
fixtures | ||
generators | ||
isolation | ||
railties | ||
abstract_unit.rb | ||
app_rails_loader_test.rb | ||
backtrace_cleaner_test.rb | ||
code_statistics_calculator_test.rb | ||
engine_test.rb | ||
env_helpers.rb | ||
generators_test.rb | ||
initializable_test.rb | ||
paths_test.rb | ||
rack_logger_test.rb | ||
rails_info_controller_test.rb | ||
rails_info_test.rb | ||
test_info_test.rb | ||
version_test.rb |