On Oct 27, 2009, at 2:32 PM, Vic P.h. wrote:

> i got a module x and then a class z and inside this class i do a
> Net::HTTP call and it looks for it inside module x ... and i am
> clueless...
>
> i get uninitialized constant ModuleX::Net::HTTP

I couldn't replicate that error using your code in ruby 1.8.7 or
in ruby 1.9.  What version are you using?

In any case, you can always force constants to be resolved
from the top level by preceding them with two colons:

::Net::HTTP

Gary Wright