blqcpg
Last Updated: February 25, 2016
·
941
· rstacruz
F8ec7f90daf8b1defb8e318d663c0f17

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.

Say Thanks
Respond