Cloned a rails application from github, works on the original dev's machine using the same version of rails (5.0.1).
Any rails command run from the app directory fails with:
Undefined local variable or method `git_source' for Gemfile
Relevant Gemfile section:
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
git_source
was introduced in Bundler 1.6.0
.
To update bundler run:
$ gem update bundler
In your console, run…
gem update bundler
bundle install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With