app/models/dataset.rb
# Returns the validity of a URL
Returns the validity of a URL
Returns the validity of a URL
def valid_url?(url)
    uri = URI.parse(url)
    uri.is_a?(URI::HTTP)
  rescue URI::InvalidURIError
    false
  end
def valid_url? ( url ) uri = URI . parse ( url ) uri . is_a? ( URI :: HTTP ) rescue URI :: InvalidURIError false end
Returns the validity of a URL
Returns the validity of a URL
url