search for: hide_profanity

Displaying 1 result from an estimated 1 matches for "hide_profanity".

2007 Sep 05
9
Profanity Filter for Rails Application
...a board. I want to be able to filter profanity. For instance if someone types an inappropriate word of 5 characters I want it to read "#?@#@" or whatever. Ideally, I would be able to install a rails plugin or ruby gem and then simply write Code : - fold - unfold --> message_text.hide_profanity! <-- and that would automatically hide all words deemed inappropriate by the filter. I would also be OK with it being part of the validation, i.e. --> validates_no_profanity :message <-- which would raise errors should there be any profanity in the value. Is there any easy rails plug...