title: Accessing config from application.rb in Controller (Rails 3)
body: <p>I'm trying to add two extra config options to my application.rb so I can read them out in controllers.</p>
  
  <pre><code># Extra
  config.twitter.key = 'foo'
  config.twitter.secret = 'bar'
  </code></pre>
  
  <p>I am trying to access them using three suggested methods:</p>
  
  <pre><code>self.config.twitter.key # Should be extended through ApplicationController Base
  config.twitter.key # Inherited but with different syntax
  CONFIG['twitter']['key'] #some massive magical array that apparently exists somewhere
  </code></pre>
  
  <p>They all give me different kinds of error when I pass them through the "debug" method, E.g:</p>
  
  <pre><code>debug self.config.twitter.key # undefined method `key' for nil:NilClass
  </code></pre>
  
  <p>So, whats going on?</p>