On 1 Oct 2007, at 16:10, Matt White wrote:
>
> Are you using a complete URI or just part of one? For example,
> 'domain.com' is not a URI. Further:
>
> [root@server15 mwhite]# ruby -r uri -e 'p
> URI.parse("google.com").host'
> nil
> [root@server15 mwhite]# ruby -r uri -e 'p URI.parse("http://
> google.com").host'
> "google.com"
>
> If that's not the problem, maybe you could give us some code? Good
> luck!

Oh thank you so much, you spotted that one a million miles off, I  
missed out the http://. Have corrected this but now getting errors like:
./test_website.rb:13:in `test': uninitialized constant  
TestWebsite::NET (NameError)
MMM something to keep my mind ticking over.

Many thanks

Gabriel