uninitialized constant Faker::CONFIG
-
20-06-2021 - |
Question
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 ? .
Solution
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?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow