sajad torkamani

Install gem

Add to Gemfile:

group :development, :test do
  gem 'faker'
end

Run:

./bin/bundle install

Use faker

require 'faker'

Faker::Name.name      #=> "Christophe Bartell"

Faker::Internet.email #=> "kirsten.greenholt@corkeryfisher.info"

Sources

Leave a comment

Your email address will not be published. Required fields are marked *