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.
Written by Rico Sta. Cruz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#