Return to Snippet

Revision: 2355
at February 3, 2007 16:12 by spider


Initial Code
validates_format_of :company_url, :with => /((http|https):\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?)/

Initial URL

                                

Initial Description

                                

Initial Title
Validate URL in model

Initial Tags
url, ruby

Initial Language
Ruby