Paul Battley wrote:
>> Can you explain to me why this is correct? I would expect
>> http://test.de/test1/test2 as the result of your call.
> 
> Sorry, I misread your original statement, which might make my reply 
> confusing.
> 
> You are getting the correct results, as others have said.
> 
> It works just like in a browser:
> http://example.com/one + two => http://example.com/two
> http://example.com/one/ + two => http://example.com/one/two
> http://example.com/one + /two => http://example.com/two
> http://example.com/one/ + /two => http://example.com/two

Thanks Guys,

now I know at least the logic behind URI.join. I am not sure, if it is 
the method of choice for my problem, but I have to think about it and 
may be I come back with another question.

Oliver

-- 
Posted via http://www.ruby-forum.com/.