title: How to resolve undefined method `middleware' while running rack-bug
body: <p>I have set up Rack-bug in ruby. I have added</p>
  
  <pre><code> config.middleware.use ("Rack::Bug",
  :secret_key =&gt; "epT5uCIchlsHCeR9dloOeAPG66PtHd9K8l0q9avitiaA/KUrY7DE52hD4yWY+8z1",
  :password   =&gt; "some_pass"
  )
  </code></pre>
  
  <p>into my config/environments/development.rb file. when i start server then <code>load_environment': undefined method</code>middleware' for <code>#&lt;Rails::Configuration:0x7f7e80b53b18&gt; (NoMethodError)</code> is showing. However in configuration same thing is mentioned in many sites.  How can I resolve this problem? I am using rail-2.2.2.</p>