method
route_from
route_from(oth)
public
Args
oth |
Description
Calculates relative path from oth to self.
Usage
require 'uri' uri = URI.parse('http://my.example.com/main.rbx?page=1') uri.route_from('http://my.example.com') #=> #<URI::Generic /main.rbx?page=1>