2

我阅读了无数关于 ruby​​ 中缺少 gems 的 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

我怎么解决这个问题?

谢谢

4

1 回答 1

3

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

gem "bcrypt-ruby"

然后运行

bundle install
于 2012-07-26T08:15:49.927 回答