I want to do like twitter.com does (and so many other sites do) and give my users URLs like:
http://mysite.com/theirusername
Presently, one of my User model validations simply denies blacklisted usernames off of a hardcoded list.
Is there a better way to do this than hardcoding the list? e.g. inspect the routes (code example?)
Any words of wisdom from someone who runs such a site would be valued! I'm sure you must have run into the scenario where you want to use a URL for some new feature, but someone is using it as their username. Has that come up often and what are some ways to handle it? You can always pick another name, use a subdomain, or ask the user to rename I guess. Perhaps it would be worthwhile to blacklist some common english nouns? Any others?