2013-03-13 42 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