title: Ruby on Rails Error: Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first
body: <p>I'm having trouble initializing a new Rails application under <code>Desktop/rails_projects</code>. According to another post, I have to empty the affected directory, which prevents me from creating a new project. The post said I'll find <code>.bundle folder</code> if I look inside with <code>ls -a</code>. </p>
  
  <p>However, the my problems is that I have created rails_projects just before creating a new Rails application, which means there's nothing there. Also, I've tried created another folder under <code>Desktop/aNewFolder</code> and same thing happens. Maybe there's a problem with Desktop itself? I'm not sure. I did <code>ls -a</code> on <code>Desktop</code> but I couldn't find <code>.bundle folder.</code> Also, I can't just erase everything in my desktop. That's absurd. </p>
  
  <p>This is what I've got when I tried to do <code>$rails new first_app</code> inside <code>Desktop/rails_projects</code>:</p>
  
  <pre><code>Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first.
  Type 'rails' for help.
  </code></pre>
  
  <p>And received this when I typed rails: </p>
  
  <pre><code>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.
  </code></pre>
  
  <p>Thank you so much for your help!!!</p>