Skip to content

Instantly share code, notes, and snippets.

@mojopon
Last active December 11, 2015 03:19
Show Gist options
  • Save mojopon/4536892 to your computer and use it in GitHub Desktop.
Save mojopon/4536892 to your computer and use it in GitHub Desktop.
validates_format_of :website, :with => URI.regexp(/^https?/),
:allow_blank => true,
:message => I18n.t('errors.messages.invalid_url')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment