سؤال

I want Faker to generate sentences in "English" language.

I have used the require 'faker'.

When I use Faker::Name.name, it works fine.

When I use Faker::Config.locale = :en, it gives the error uninitialized constant Faker::CONFIG.

Am I missing something ? .

هل كانت مفيدة؟

المحلول

I think you are using a very outdated version of the Faker gem. The current version seems to be 1.0.1.

Maybe you should just try gem faker first?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top