LoadError Unable to autoload constant
<p>It seems that autoloader is loading up lib/tools/address and not my model</p>

<p>Address throws the following error </p>

<blockquote>
  <p>LoadError: Unable to autoload constant Address, expected
  /lib/tools/address.rb to define it</p>
</blockquote>

<p>Can someone tell me what I'm doing wrong. I thought that<br>
Address would point to constant models/address.rb<br>
and<br>
Tools::Address to lib/tools/address.rb</p>

<p>app/models/address.rb</p>

<pre><code>class Address
  blah
end
</code></pre>

<p>lib/tools/address.rb</p>

<pre><code>module Tools
  class Address
    blah blah
  end
end
</code></pre>