title: Error launching Rails server: undefined method 'configure'
body: <p>I'm new to rails and working through <a href="http://www.railstutorial.org/" rel="noreferrer">Hartl's tutorial</a>. Everything was fine until I tried to do the tutorial a second time and created another project trying to use the latest version of rails. When I try to load the <code>rails server</code> from the app folder I get the following error.</p>
  
  <pre class="lang-none prettyprint-override"><code>$ rails s
  =&gt; Booting WEBrick
  =&gt; Rails 4.0.4 application starting in development on
  =&gt; Run `rails server -h` for more startup options
  =&gt; Ctrl-C to shutdown server
  Exiting
  /Users/sierra/Desktop/sample_app_2/config/environments/development.rb:1:in
    `&lt;top (required)&gt;': undefined method `configure' for
    #&lt;SampleApp2::Application:0x00000101a74610&gt; (NoMethodError)
  </code></pre>
  
  <p>My Gemfile is directly from the Hartl tutorial:</p>
  
  <pre class="lang-ruby prettyprint-override"><code>source 'https://rubygems.org'
  ruby '2.1.0'
  #ruby-gemset=railstutorial_rails_4_0
  
  gem 'rails', '4.0.4'
  
  group :development, :test do
    gem 'sqlite3', '1.3.8'
    gem 'rspec-rails', '2.13.1'
  end
  
  group :test do
    gem 'selenium-webdriver', '2.35.1'
    gem 'capybara', '2.1.0'
  end
  
  gem 'sass-rails', '4.0.1'
  gem 'uglifier', '2.1.1'
  gem 'coffee-rails', '4.0.1'
  gem 'jquery-rails', '3.0.4'
  gem 'turbolinks', '1.1.1'
  gem 'jbuilder', '1.0.2'
  
  group :doc do
    gem 'sdoc', '0.3.20', require: false
  end
  
  group :production do
    gem 'rails_12factor', '0.0.2'
  end
  </code></pre>