Custom Length Validation Tokenizers in Rails Validations

No Comments - Post one!
By Peter Cooper on July 10th, 2008 in Blogosphere

Ryan Daigle notes that ActiveRecord's validates_length_of validator now accepts a "tokenizer" block to implement custom length validators. Sounds confusing, but is actually rather useful.

Leave a Reply