title: namespaced controllers + models in subfolders
body: <p>I created a namespace for my product related controllers under products...</p>
  
  <pre><code>  scope :module =&gt; :products do
      resources :products
      resources :product_images
    end
  </code></pre>
  
  <p>which worked great.</p>
  
  <p>independently, i had added an autoload path so i could put models into subdirectories.</p>
  
  <pre><code>config.autoload_paths += Dir["#{config.root}/app/models/**/"]
  </code></pre>
  
  <p>which also worked great.</p>
  
  <p>when i try to use both together..., i receive errors.</p>
  
  <pre><code>Expected /app/models/products/product.rb to define Products::Product
  </code></pre>
  
  <p>even though i should not have to namespace my model, for the sake of troubleshooting, if i DO namespace my model... the error becomes...</p>
  
  <pre><code>Expected /app/models/products/product.rb to define Product
  </code></pre>
  
  <p>is there additional configuration i need for these two to work together?</p>