/ Published in: Ruby
This is useful for using ActiveRecord validations without the ActiveRecord DB dependencies, this snippet is meant to be used with Textmate... create this in models/name_of_your_model to use.
URL: http://www.railsweenie.com/forums/2/topics/724