Skip to content

Instantly share code, notes, and snippets.

@jackwillis
Last active August 29, 2015 14:27
Show Gist options
  • Save jackwillis/2de03bf3527889f7135f to your computer and use it in GitHub Desktop.
Save jackwillis/2de03bf3527889f7135f to your computer and use it in GitHub Desktop.
def self.canonical_url
url = ""
url << "?part_a="
url << Rack::Utils.escape(part_a)
url << "&part_b="
url << Rack::Utils.escape(part_b)
url << "&part_c="
url << Rack::Utils.escape(part_c)
url
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment