app/helpers/activity_helper.rb
def absolutize_url(url)
      URI.join(@request.original_url, url).to_s
    rescue URI::InvalidURIError
      nil
    end
# Rewrite relative url's to absolute
# (i.e. if it is relative, rewrite it to be absolute)
# Returns nil if the argument isn't an url
Rewrite relative url's to absolute

Returns nil if the argument isn't an url
Rewrite relative url ' s to absolute Returns nil if the argument isn ' t an url
def absolutize_url(url)
      URI.join(@request.original_url, url).to_s
    rescue URI::InvalidURIError
      nil
    end
def absolutize_url ( url ) URI . join ( @request . original_url , url ) . to_s rescue URI :: InvalidURIError nil end
Rewrite relative url's to absolute
(i.e.
Rewrite relative url ' s to absolute ( i . e .
url