您已经激活了rake 10.0.4,但您的Gemfile需要rake 10.0.3

时间:2013-06-12 05:14:23

标签: ruby-on-rails rake

我的Gemfile中有什么

gem'rake','10 .0.3'#gemfile中的第一行

删除了Gemfile.lock

运行Bundle update

Ran bundle update rake

运行资产:预编译

我收到以下消息:

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

Bundle show output:

捆绑包含的宝石:

....
* rake (10.0.3)

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

1 个答案:

答案 0 :(得分:5)

使用命令

前面的捆绑exec
bundle exec rake assets:precompile

这将解决您的问题。

I always recommend to use "bundle exec" before any such kind of commands.
相关问题