# NotNaughty - Validation Framework 0.4

**URL:** <https://www.ruby-forum.com/t/notnaughty-validation-framework-0-4/186729>\
**Category:** Ruby\
**Created:** [February 25, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/notnaughty-validation-framework-0-4/186729 "2008-02-25T15:58:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian\_ASSSSmann](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/48db29/32.png) [@Florian\_ASSSSmann](https://www.ruby-forum.com/u/Florian_ASSSSmann)\
**Post date:** [February 25, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/notnaughty-validation-framework-0-4/186729/1 "2008-02-25T15:58:36Z")

</div>

Hi folks,

I just released my first gem. It’s a validation framework that targets  
an easy  
way of creating validations and reuse them in any ruby project that  
needs to  
validate any kind of values.

It’s syntax is close to the ActiveRecord and Assistance validations with  
some  
enhancements.

[http://rubyforge.org/projects/not-naughty](http://rubyforge.org/projects/not-naughty)

== Features

- Easy to extend

- Easy to adapt (provides an adapter/plugin for sequel models)

- Supports inheritance

- Validator can handle object states

- Supports chained conditions for validations

- Comes with default validations for presence, length, …

- Magic builder methods that take global attributes and conditions

- Error messages are eval’ed (not glued) which gives you more control

- Lots of examples in the specs and documentation

== Installation

sudo gem install not\_naughty

== ToDo

Awaiting feature requests…

Cheers  
Florian

---

<div class="post-metadata">

**Author:** ![Florian\_ASSSSmann](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/48db29/32.png) [@Florian\_ASSSSmann](https://www.ruby-forum.com/u/Florian_ASSSSmann)\
**Post date:** [February 25, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/notnaughty-validation-framework-0-4/186729/2 "2008-02-25T16:06:52Z")

</div>

On Mon, Feb 25, 2008 at 9:57 AM, Florian Aßmann  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

Nice! A non ActiveRecord-specific validations module is something  
I’ve wanted in the past.
