Sha256: ed94056ac1b41eb959649e8d191b0249d2e95d92e27e613f2e696867db5bc9e5

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

## validates_as_vat_number

Now you can validate VAT using the European service called [VIES](http://ec.europa.eu/taxation_customs/vies/viesspec.do), to ensure it exists. Only require this gem and call validate_as_vat_number on your VAT field, in an Active Record object.

## Install 

Specify it in your Rails config.

    config.gem 'validates_as_vat_number', :source => 'http://gemcutter.org'

Then install it.

    rake gems:install

## Example


    class Company < ActiveRecord::Base
    	validates_as_vat_number :vat
    end


## Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

## Copyright

Copyright (c) 2009 Develon. See LICENSE for details.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
validates_as_vat_number-1.0.2 README.markdown
validates_as_vat_number-1.0.1 README.markdown