Displaying 1 result from an estimated 1 matches for "validates_no_profanity".
2007 Sep 05
9
Profanity Filter for Rails Application
...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 plugin or ruby gem that does this. This seems
like such a common need for an application that reinventing the wheel
seems foolish.
Thanks,
-Nathan
--
Posted via http://www.ruby-forum.co...