title: How to generate only a Gemfile in Rails?
body: <p>Using rbenv so the process of creating a new app is a bit convoluted:</p>
  
  <ol>
  <li>Create directory</li>
  <li>cd directory</li>
  <li>Set ruby version: <code>rbenv local 1.9.3-p125</code> (or other version)</li>
  <li>Set gemset: <code>echo project-name &gt; .rbenv-gemsets</code></li>
  <li><code>gem install rails -v 3.2.2 --no-rdoc --no-ri</code> (for example)</li>
  <li><code>rbenv rehash</code></li>
  <li><code>echo "gem 'rails', '3.2.2'" &gt; Gemfile</code></li>
  <li><code>bundle</code></li>
  <li><code>rails new .</code> (Enter y to overwrite)</li>
  <li><code>bundle</code></li>
  </ol>
  
  <p>This worked before, but this time I got an error on the <code>rails new .</code> command:</p>
  
  <pre><code>...
  ...
  create  vendor/assets/stylesheets
  create  vendor/assets/stylesheets/.gitkeep
  create  vendor/plugins
  create  vendor/plugins/.gitkeep
  run  bundle install
  b/gems/bundler-1.2.1/lib/bundler/resolver.rb:287:in `resolve': Could not find gem 'jquery-rails (&gt;= 0) ruby' in the gems available on this machine. (Bundler::GemNotFound)
  </code></pre>
  
  <p>Running <code>rails new .</code> a second time throws </p>
  
  <p><code>Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first.</code></p>
  
  <p>What is the best way to initialize a new Rails app if it's not possible to do <code>rails new app-name</code>?</p>
  
  <p>How to create just the Gemfile? If I had the correct Rails Gemfile, then <code>bundle</code> and <code>rails new .</code> should work...</p>