Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
markuslopez
371 PointsRouting question. how can i stop people from registering with usernames of users, statuses, register, etc.?
I obviously don't want anyone to be able to sign up with a username of users, statuses, register, login, etc. since they won't be able to have a profile since localhost3000/register will lead to my register page. What can I do to stop them?
1 Answer
Unsubscribed User
30 PointsI googled "rails devise disallow usernames"
And found this, which looks reasonable http://stackoverflow.com/questions/13003546/how-can-i-blacklist-usernames-with-devise
markuslopez
371 Pointsmarkuslopez
371 Pointsyou made that look easy. thanks!