title: How to autoload files in folder under rails app's root
body: <p>I am trying to have files under <code>myapplication/somefolder</code>. Google and Stackoverflow say I should add this:</p>
  
  <pre><code>config.autoload_paths += %W(#{config.root}/somefolder)
  </code></pre>
  
  <p>in my <code>config/application.rb</code>, so I did. </p>
  
  <p>But the files don't get loaded.</p>
  
  <p>I tried namig <code>somefolder/myclass.rb</code> both <code>class Myclass</code> and <code>class Somefolder::Myclass</code> but still no luck.</p>
  
  <p>I can see that the dir was found in <code>Rails.application.config.autoload_paths</code> in console does indeed include my <code>/path/to/myapplication/somefolder</code> directory, so that should be okay.</p>
  
  <p>All the other questions around this topic use <code>theapp/app/somefolder</code> or <code>theapp/lib/somefolder</code> but not <code>theapp/somefolder</code> so maybe thats where it gets rotten.</p>
  
  <p>So I tried referencing the class with <code>::Somefolder::MyClass</code> but not even that helped.</p>
  
  <p>I am using Rails 3.2.1</p>