Skip to content

Instantly share code, notes, and snippets.

@xander-miller
Created January 27, 2015 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xander-miller/701bfc09990fe1365a25 to your computer and use it in GitHub Desktop.
Save xander-miller/701bfc09990fe1365a25 to your computer and use it in GitHub Desktop.
def scrub_uri
uri.strip!
unless uri.slice(0,4) == "http" do
uri = uri.prepend "http://"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment