문제

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