'factory_bot_rails failed to install after bundle install
Trying to install the factory_bot_rails gem, but running into this after executing bundle install:
There was an error parsing `Gemfile`: Undefined local variable or method `‘factory_bot_rails’' for Gemfile. Bundler cannot continue.
My rvm is up to date...what exactly is the problem?
Thanks in advance.
Solution 1:[1]
I think the problem is how the gem is wrote.
Just type on a console in the project's root directory:
gem install factory_bot_rails
or put inside your Gem file
group :development, :test do
gem 'factory_bot_rails'
end
After type:
bundle install
source: https://github.com/thoughtbot/factory_bot_rails enter link description here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Matteo |
