This ActiveRecord extension provides more validation schemes. There are some useful validation missing added by this plugin to fill the gap. This extension is heavily tested.


In your Rails app root, use the following command-line :

cd vendor/plugins/
hg clone http://bitbucket.org/Bounga/ar-validations/

or install it system-wide :

$ sudo gem install ar-validations

and require it in Rails::Initializer (environment.rb) :

config.gem 'ar-validations'


In your model :

class User < ActiveRecord::Base
  validates_email :email
  validates_url :url


If you want to contribute you should take a look at:

Problems, comments, and suggestions are welcome on the ticket system

Copyright (c) 2008 Nicolas Cavigneaux, released under the MIT license


Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.