Filtering out bad language

Iâ??m writing a rails application where users can post information. Whatâ??s
the best way to filter out any profanity that may be written by the user
before the blurb goes public?

Thanks!