你好我在這裏再次遇到了我的項目中的錯誤。 我想安裝activeadmin寶石,但它顯示錯誤如下。我的rails版本是4.0.0activeadmin gem中的錯誤
我期待提供的解決方案,但它也顯示我錯誤。
Updating git://github.com/gregbell/active_admin.git
fatal: ambiguous argument 'rails4': unknown revision or path not in the working
tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Git error: command `git rev-parse rails4` in directory
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/cache/bundler/git/active_admin-d
67faab65e9b74efbc8efb4a777a851e9f78b2ca has failed.
If this error persists you could try removing the cache directory
'C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/cache/bundler/git/active_admin-
d67faab65e9b74efbc8efb4a777a851e9f78b2ca'
如果我刪除分支名稱就說明我錯誤
Updating git://github.com/gregbell/active_admin.git
Resolving dependencies...
Bundler could not find compatible versions for gem "devise":
In Gemfile:
activeadmin (>= 0) x86-mingw32 depends on
devise (~> 3.2) x86-mingw32
devise (3.1.1)