2013-03-13 44 views
0

根据“导轨”命令的输出,有“导轨应用”命令。当我使用它时,我看到“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我真的做错了什么?或者这些命令也一样? 对不起,我写的不好。

回答

0

rails application不是有效的命令。

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

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

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

+0

是的,但为什么'rails application'不是有效的命令?我可以看到它,如果我在新的应用程序中运行'rails'命令并参见: '应用程序生成Rails应用程序代码' – Psylone 2014-10-06 08:17:43