# \[ANN\] simple\_descriptor 0.2.0

**URL:** <https://www.ruby-forum.com/t/ann-simple-descriptor-0-2-0/106002>\
**Category:** Rails\
**Created:** [June 5, 2007, 2:52pm UTC](https://www.ruby-forum.com/t/ann-simple-descriptor-0-2-0/106002 "2007-06-05T14:52:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paolo\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@Paolo\_N](https://www.ruby-forum.com/u/Paolo_N)\
**Post date:** [June 5, 2007, 2:52pm UTC](https://www.ruby-forum.com/t/ann-simple-descriptor-0-2-0/106002/1 "2007-06-05T14:52:02Z")

</div>

SimpleDescriptor is a gem that makes easy to attach extra informations  
to a generic ruby class.  
Version 0.2.0 implements specific method to integrate with  
ActiveRecord and help you keeping DRY your model validation code.

What you get is the possibility to enforce automatically validation  
inherited from database definition (length of strings, numeric  
formats, required fields).

In addition to this you get a set of methods to easily ask to your  
models which validations criteria are applied, tweak them and add new  
ones.This way you can build views helper that are aware of your model  
validation and display data coherently.

SimpleDescriptor makes also easy to build standardized ways to  
manipulate different models that share some common characteristics.

To know more about the gem read the blog post  
[http://assertbuggy.blogspot.com/2007/06/simple-descriptor-code-less-validate.html](http://assertbuggy.blogspot.com/2007/06/simple-descriptor-code-less-validate.html)

or visit the rubyforge home [http://simpledesc.rubyforge.org](http://simpledesc.rubyforge.org)
