0

根据“rails”命令的输出,有“rails application”命令。当我使用它时,我会看到“rails new”命令的输出。

...

Description:
The 'rails new' command creates a new Rails application with a default
directory structure and configuration at the path you specify.

You can specify extra command-line arguments to be used every time
'rails new' runs in the .railsrc configuration file in your home directory.

Note that the arguments specified in the .railsrc file don't affect the
defaults values shown above in this help message.

Example:
rails new ~/Code/Ruby/weblog

This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
See the README in the newly created application to get going.

Mb 我做错了什么?或者这些命令做同样的事情?对不起我写得不好。

4

1 回答 1

0

rails application不是一个有效的命令。

如果给出了无效命令,rails命令行工具将打印出手册页。大多数命令行工具都是这样做的。

运行rails nonexistent_command,它将打印出手册页。

如果在 Rails 应用程序之外,它将打印rails new. 如果在 rails app 目录中,它将打印出其他可能的命令。例如rails generate,rails console等。

于 2013-03-15T01:56:45.093 回答