title: undefined local variable or method `config' for main:Object (NameError)
body: <p>I'm writing a rails app and I'm trying to use <a href="https://github.com/plataformatec/devise/" rel="nofollow">Devise</a>. Following the <a href="https://github.com/plataformatec/devise#getting-started" rel="nofollow">setup instructions here</a>, I am trying to do <code>rails generate devise:install</code>, but I keep getting this error:</p>
  
  <pre><code>~/projects/readone/config/application.rb:8:in `&lt;top (required)&gt;': undefined local variable or method `config' for main:Object (NameError)
  </code></pre>
  
  <p>I tried different things like uninstalling, reinstalling the gem, etc.  I also found some similar errors on Google and elsewhere on Stack Overflow, but none of them had to do specifically with this <code>undefined local variable or method `config'</code> error.</p>
  
  <p>I'll include the full error below.  Any idea what might be happening?</p>
  
  <pre><code>~/readone/config/application.rb:8:in `&lt;top (required)&gt;': undefined local variable or method `config' for main:Object (NameError)
  from /~/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/spring-1.2.0/lib/spring/application.rb:82:in `require'
  from /~/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/spring-1.2.0/lib/spring/application.rb:82:in `preload'
  from /~/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/spring-1.2.0/lib/spring/application.rb:143:in `serve'
  from /~/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/spring-1.2.0/lib/spring/application.rb:131:in `block in run'
  from /~/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/spring-1.2.0/lib/spring/application.rb:125:in `loop'
  from /~/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/spring-1.2.0/lib/spring/application.rb:125:in `run'
  from /~/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/spring-1.2.0/lib/spring/application/boot.rb:18:in `&lt;top (required)&gt;'
  from /~/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  from /~/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  from -e:1:in `&lt;main&gt;'
  </code></pre>