Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
When the existing declarative validation macros are not enough for your application needs Rails gives you a few custom techniques.
Rails 3 introduces the ability to add custom validation macros (available to all your model classes) by extending ActiveModel::EachValidator.