I'm a Ruby on Rails developer in Kansas City. I recently created a Ruby gem for Rails called validates_blacklist. This is an ActiveRecord mixin that allows you to maintain a list of banned values for the attributes of any model.
For instance, perhaps you want the User model to exclude certain usernames like 'admin', 'root', etc, so those users can't pose as site staff. This allows you to create a blacklist stored in a yaml file, so it doesn't gunk up your model.
Watch the video for more details.
http://kconrails.com
Link to this comment:
All Comments (0)