Skip to content

Instantly share code, notes, and snippets.

@gmanley
Created September 17, 2013 23:32
Show Gist options
  • Save gmanley/6602206 to your computer and use it in GitHub Desktop.
Save gmanley/6602206 to your computer and use it in GitHub Desktop.
validates :full_url,
presence: true,
format: { with: URI.regexp(%w(http https)),
message: "The 'url' parameter is invalid!" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment