Rails helper that extracts the domain from a URL submitted to the function.