title: Rails generate error: No such file or directory - getcwd
body: <p>When running <code>rails generate</code> on a new Rails 4.2 project, I keep getting the error: </p>
  
  <pre><code>~/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/spring-1.3.0/lib/spring/configuration.rb:37:in `pwd': No such file or directory - getcwd (Errno::ENOENT)
  </code></pre>
  
  <p>How can I fix this?</p>