I think I have found a bug in a Ruby library. I thought I would do a sanity check in this group before taking it any further I am processing HTML pages leached from various sites.Sometimes the HREFs contain just a word eg <a href="XXXX"> This works fine when a user clicks on the link as the browser obviously reconstitues the full URL eg http://www.host.com/XXXX My code needs to do a similar reconstitution. Looks like a job for URI.parse() u = URI.parse(''XXXX'') Results in u.path => XXXX and u.to_s => XXXX Now if I add a host eg u.host = ''www.host.com'' and then look at the new URL I get u.host => www.host.com u.path => XXXX u.to_s => //www.host.comXXXX So URI.parse is giving me ''//'' for host but no ''/'' for path. Looks a bit inconsistent. Peter _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails