4

我的 Gemfile 中有什么

gem 'rake', '10.0.3' #gemfile 中的第一行

已删除 Gemfile.lock

运行捆绑更新

Ran bundle update rake

运行资产:预编译

我收到以下消息:

You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3.

捆绑显示输出:

捆绑包中包含的宝石:

....
* rake (10.0.3)

任何想法为什么我会收到此错误消息(我遵循的过程是关于 Stackoverflow 的建议摘要)?

4

1 回答 1

5

在命令前使用bundle exec

bundle exec rake assets:precompile

这将解决您的问题。

I always recommend to use "bundle exec" before any such kind of commands.
于 2013-06-12T05:23:15.293 回答