Validates For Australia
validates_for_australia provides you validators for Australian numbers such as TFN or ABN.
Install using rubygems:
gem install validates_for_australia
Or add the gem in your Gemfile
class User < ActiveRecord::Base validates :tfn_number, :tfn => true end
class Company < ActiveRecord::Base validates :abn_number, :abn => true validates_postcode_of :postcode end
Created at Netengine by Damien Brzoska
Contributors and patches are welcome! Please send a pull request!
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.