Validates_as_vat_number is a project mainly written in Ruby, based on the MIT license.
vies VAT validations using http://ec.europa.eu/taxation_customs/vies/
Now you can validate VAT using the European service called VIES, to ensure it exists. Only require this gem and call validate_as_vat_number on your VAT field, in an Active Record object.
Specify it in your Rails config.
config.gem 'validates_as_vat_number', :source => 'http://gemcutter.org'
Then install it.
rake gems:install
class Company < ActiveRecord::Base
validates_as_vat_number :vat
end
Copyright (c) 2009 Develon. See LICENSE for details.