Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Ruby on Rails Gem validates_blacklist

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
274 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 30, 2009

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

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more