>>>>> "B" == Barnett, Aaron <aaron.barnett / commerceone.com> writes:

B> def rel_path(a, b)
[...]

 perhaps you can replace it with

B>     a.size.times { new_path += '../' }
B>     b.each { |dir| new_path += dir + '/' }

B>     new_path

       '../' * a.size + b.join('/')

B> end


Guy Decoux