Failure to install due to faker gem not being properly invoked in users.rb
ediazcomellas opened this issue · comments
Hi, @ediazcomellas 😄. Thanks for reporting!
I cannot reproduce this issue 🤔. The faker
gem should be loaded by the gem "faker"
entry in the Gemfile 🤔.
Could you tell us a way to reproduce the error?
Hi @javierm
I tried to install and got nasty errors about Faker being unable to work. This was installed in an ubuntu server 24.04 machine.
I solved it by adding
require 'faker'
at the top of db/dev_seeds/users.rb
You are right saying that the gem is declared in Gemfile, but somehow it needed the "require".
BTW, I know nothing of ruby... just did some searches in google and a lot of trial/error.
When you say "try to install", do you mean on your development environment or on a production server? Could you paste the exact command that is giving you the error (as well as the nasty errors you mention)?
Sure. I will make a fresh new install and copy here the output today.
Thanks a lot for your attention.
Ups... I'm unable to replicate it too. In fact, it was a development environment. I've done a fresh new install and it creates users without a flaw. I'm going to close the issue. Please forgive the noise.
There are still a lot of packages to install to get it working (besides the ones already stated in the documentation). I will let you know the complete list in case you are interested.
There are still a lot of packages to install to get it working (besides the ones already stated in the documentation). I will let you know the complete list in case you are interested.
A pull request updating the README.md
file would be welcome!