app/controllers/application_controller.rb
# called to log and redirect a user to an external link
called to log and redirect a user to an external link
called to log and redirect a user to an external link
def external_link
    url = params[:url]
    if url.nil?
      render nothing: true
      return
    end
    ExternalLinkLog.log url, request, current_user
    redirect_to url
  end
def external_link url = params [ :url ] if url . nil? render nothing : true return end ExternalLinkLog . log url , request , current_user redirect_to url end
called to log and redirect a user to an external link
called to log and redirect a user to an external link