Be consistent with the style you use for hashes. `validates :url, format: URI::regexp(%w(http https))`