README.md in ama_validators-0.0.12 vs README.md in ama_validators-0.0.13

- old
+ new

@@ -8,24 +8,29 @@ Compile the following validators: - Credit card - Email - Membership number - Phone number - Postal code ## Installation -Add this line to your application's Gemfile: +Add this line to your Gemfile within your rails application: gem 'ama_validators' And then execute: - $ bundle + $ bundle install -Or install it yourself as: +## Usage - $ gem install ama_validators +Apply the validator to a model like so: -## Usage +``` +class TeamMember < ApplicationRecord + validates :email, presence: true, email_format: { allow_blank: false } +end +``` -TODO: Write usage instructions here +All of the validators are here: https://github.com/amaabca/ama_validators/tree/master/lib/ama_validators/ + ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`)