Ruby on Rails Error: Can ' T initialize eine neue Rails-Anwendung in das Verzeichnis von anderen, ändern Sie bitte einem nicht-Rails-Verzeichnis ersten

Ich habe Probleme beim initialisieren einer neuen Rails-Applikation unter Desktop/rails_projects. Laut einem anderen post, habe ich zu leer, das betroffene Verzeichnis, welches mich daran hindert, ein neues Projekt erstellen. Die post sagte, ich werde finden .bundle folder wenn ich look inside mit ls -a.

Jedoch mein Problem ist, dass ich erstellt habe, rails_projects nur vor dem erstellen einer neuen Rails-Anwendung, was bedeutet, dass es dort nichts gibt. Auch habe ich versucht erstellten anderen Ordner unter Desktop/aNewFolder und dasselbe passiert. Vielleicht gibt es ein problem mit dem Desktop selbst? Ich bin mir nicht sicher. Ich habe ls -a auf Desktop aber ich konnte nicht finden .bundle folder. Auch, ich kann nicht einfach alles löschen in meinem desktop. Das ist absurd.

Dies ist, was ich bekam, als ich versuchte zu tun $rails new first_app innen 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.

Empfangen und diese, wenn ich tippte Schienen:

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.

Vielen Dank für Eure Hilfe!!!

  • Geben Sie rails console... macht es zu versuchen, zu öffnen, eine Konsole?
InformationsquelleAutor wag0325 | 2013-12-13
Schreibe einen Kommentar