我在Desktop/rails_projects
下初始化新的Rails應用程序時遇到問題。根據另一篇文章,我必須清空受影響的目錄,這阻止了我創建一個新項目。這個帖子說如果我用ls -a
找內部,我會找到.bundle folder
。Ruby on Rails錯誤:無法在另一個目錄中初始化新的Rails應用程序,請首先更改爲非Rails目錄
但是,我的問題是我在創建一個新的Rails應用程序之前創建了rails_projects,這意味着什麼都沒有。另外,我試過在Desktop/aNewFolder
下創建了另一個文件夾,同樣的事情發生。也許桌面本身存在問題?我不確定。我在Desktop
上做過ls -a
,但是我找不到.bundle folder.
另外,我不能僅僅刪除桌面上的所有內容。這太荒謬了。
這是我有什麼,當我試圖做$rails new first_app
內Desktop/rails_projects
:
Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first.
Type 'rails' for help.
而且收到此當我輸入軌:
The most common rails commands are:
generate Generate new code (short-cut alias: "g")
console Start the Rails console (short-cut alias: "c")
server Start the Rails server (short-cut alias: "s")
dbconsole Start a console for the database specified in config/database.yml
(short-cut alias: "db")
new Create a new Rails application. "rails new my_app" creates a
new application called MyApp in "./my_app"
In addition to those, there are:
application Generate the Rails application code
destroy Undo code generated with "generate" (short-cut alias: "d")
benchmarker See how fast a piece of code runs
profiler Get profile information from a piece of code
plugin Install a plugin
runner Run a piece of code in the application environment (short-cut alias: "r")
All commands can be run with -h (or --help) for more information.
非常感謝你的幫助! !
類型'軌道控制檯'...它嘗試打開控制檯嗎? – tyler