Nikolay Rys
Nikolay Rys

Reputation: 147

Validation of user input in Rails

I'm developing my first rails application and I've met a necessity to check user input. For example, sometimes when a user create accout, he or she enters the data that hardly can be called appropriate. I've found gems to check the correctness of email and date of birth, and I would like to know, if there are similar gems for user's name and other fields. Particularly, I need one that can check for the use of filthy language. I'm already a bit tired of "AnalAvenger666"s on my site. Thank you.

Upvotes: 0

Views: 137

Answers (1)

John Paul Ashenfelter
John Paul Ashenfelter

Reputation: 3143

You could try Intridea's profanity filter

https://github.com/intridea/profanity_filter

Its not that hard to exclude certain words and word-patterns yourself, but its a start.

Upvotes: 1

Related Questions