Skip to content

Instantly share code, notes, and snippets.

@djberg96
Created November 5, 2011 02:09
Show Gist options
  • Save djberg96/1340988 to your computer and use it in GitHub Desktop.
Save djberg96/1340988 to your computer and use it in GitHub Desktop.
Appending a path to a URI
require 'uri'
s1 = "http://storage.blah.com/auth28173"
s2 = "/container/path/to/object"
u = URI.parse(s1)
puts u + s2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment