Format and validate a URL in Active Record. Example gem for RailsCasts.