Validates For Australia
Introduction
validates_for_australia provides you validators for Australian numbers such as TFN or ABN.
Installation
Install using rubygems:
gem install validates_for_australia
Or add the gem in your Gemfile
gem 'validates_for_australia'
Usage
class User < ActiveRecord::Base
validates :tfn_number, :tfn => true
end
class Company < ActiveRecord::Base
validates :abn_number, :abn => true
validates_postcode_of :postcode
end
Contributors
Created at Netengine by Damien Brzoska
Contributors and patches are welcome! Please send a pull request!
License
Validates For Australia is Copyright © 2011 Damien Brzoska. It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.