Last Updated: February 25, 2016
·
1.845K
· rstacruz

Generating fake names in Ruby

Ruby ffaker is pretty cool.

# gem install ffaker
require 'ffaker'

You can generate emails:

Faker::Internet.email
#=> "dayna@auer.name", "joy@nienowbradtke.info"

Or names:

Faker::Name.name
#=> "Trevor Herman", "Angela Balistreri", "Daphnee Terry Sr."

Lorem ipsum:

Faker::Lorem.sentence
#=> "Expedita et aspernatur eum sit ipsam culpa."

And a lot more. See this extremely convenient cheatsheet that will make your life better.