Rails:在任何来源中都找不到bcrypt-ruby-3.0.1

时间:2012-05-20 22:03:14

标签: ruby-on-rails-3

我阅读了无数的关于ruby中缺少宝石的stackoverflow文章,但我仍然无法解决问题。情况如下:

nicolamac:Proj a$ rails new MyGreatApp
[...]
nicolamac:Proj a$ cd MyGreatApp/
[...]
nicolamac:MyGreatApp a$ bundle install
[...]
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

但如果我这样做:

nicolamac:MyGreatApp nicolagreco$ rails generate devise:install

我得到了

Could not find bcrypt-ruby-3.0.1 in any of the sources

我该如何解决这个问题?

由于

1 个答案:

答案 0 :(得分:3)

尝试通过添加到Gemfile来安装它:

gem "bcrypt-ruby"

然后运行

bundle install