当我在将 activeadmin 添加到我的 gemfile 后进行捆绑安装时,出现以下错误。
解决增量:100% (11082/11082),完成。致命:模棱两可的参数“rails4”:未知的修订版或路径不在工作树中。使用 '--' 将路径与修订分开,如下所示:'git [...] -- [...]' Git error: command git rev-parse rails4
in directory /usr/local/rvm/gems/ruby-2.0.0- p247/cache/bundler/git/active_admin-d67faab65e9b74efbc8efb4a777a851e9f78b2ca 失败。如果此错误仍然存在,您可以尝试删除缓存目录'/usr/local/rvm/gems/ruby-2.0.0-p247/cache/bundler/git/active_admin-d67faab65e9b74efbc8efb4a777a851e9f78b2ca'
我的 Gemfile 如下:
source 'https://rubygems.org'
ruby "2.0.0"
gem 'rails', '4.0.0'
gem 'jquery-rails', '3.0.4'
gem 'turbolinks', '1.3.0'
gem 'jbuilder', '~> 1.2'
gem 'devise', '3.0.1'
gem 'cancan', '1.6.10'
gem 'pg', '0.15.1'
gem 'rails_12factor', '0.0.2'
gem 'sass-rails', '~> 4.0.0'
gem 'coffee-rails', '~>4.0.0'
gem 'uglifier', '2.1.1'
gem 'pg_search', "~> 0.7.0"
gem 'carrierwave', "~>0.9.0"
gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'
gem 'bootstrap-sass',
git: 'git://github.com/thomas-mcdonald/bootstrap-sass.git',
branch: '3'
gem 'rmagick'
gem 'mini_magick'
gem 'fog'
gem 'carrierwave_direct'
gem 'sidekiq'
gem 'activeadmin', github: 'gregbell/active_admin', branch: 'rails4'