My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Username generation in Ruby on Rails

Username generation in Ruby on Rails

Mike Chilson's photo
Mike Chilson
·Apr 27, 2017

Today we are going to create a unique username automatically using the user's full name in a typical Ruby on Rails application, i.e., "Alex Castaño" => "alex_castano" It can be very useful when creating a sign-up form, as we want it to be as simple as possible, like our Deverify register form.