2009-11-10 RailsでのURLチェック Rails validates_format_of :url, :with => URI.regexp(['http', 'https']), :allow_blank => true これは便利