title: Ruby on Rails Error Using Rails Methods
body: <p>I currently have started learning Ruby On Rails. I have Ruby 2.3.1 and Rails 5.1.1 on my Debian Linux. I was following the instructions here : <a href="http://railscasts.com/episodes/417-foundation?view=asciicast" rel="nofollow noreferrer">http://railscasts.com/episodes/417-foundation?view=asciicast</a>
  However, when I try to use the method <code>rails g scaffold product name price:decimal --skip-stylesheets</code>. I get this error; </p>
  
  <pre><code>"/usr/lib/ruby/vendor_ruby/rails/railtie/configuration.rb:95:in `method_missing': undefined method `load_defaults' for #&lt;Rails::Application::Configuration:0x000000016b9058&gt; (NoMethodError)
  from /root/Desktop/RubyOnRails/store/config/application.rb:12:in `&lt;class:Application&gt;'
  from /root/Desktop/RubyOnRails/store/config/application.rb:10:in `&lt;module:Store&gt;'
  from /root/Desktop/RubyOnRails/store/config/application.rb:9:in `&lt;top (required)&gt;'
  from /usr/lib/ruby/vendor_ruby/spring/application.rb:82:in `require'
  from /usr/lib/ruby/vendor_ruby/spring/application.rb:82:in `preload'
  from /usr/lib/ruby/vendor_ruby/spring/application.rb:143:in `serve'
  from /usr/lib/ruby/vendor_ruby/spring/application.rb:131:in `block in run'
  from /usr/lib/ruby/vendor_ruby/spring/application.rb:125:in `loop'
  from /usr/lib/ruby/vendor_ruby/spring/application.rb:125:in `run'
  from /usr/lib/ruby/vendor_ruby/spring/application/boot.rb:18:in `&lt;top (required)&gt;'
  from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'"
  </code></pre>
  
  <p>I get the error, also when I try to generate a controller or model. Because of this error, I can not follow any tutorial. I have tried to reinstall Rails but did not work.How can I solve this? Thank you in advanced.</p>