Good notes posted by i_am_cam
RSS feed![Default_avatar_30](https://www.gravatar.com/avatar/91453ebb3f8e0d63b68249b3108d7d62?default=http://apidock.com/images/default_avatar_30.png&size=30)
10 thanks
RE: Using validates_format_of to validate URIs
Further to Olly’s note below, you can also specify the protocol to further limit the valid uri’s, else things like ‘ftp ://someurl.com’ (there’s only a space in there to get it to display on here) would be valid.
validates_format_of :uri, :with => URI.regexp(['http'])