bcrypt error: Devise ruby 2.0 and rails 4.0

前端 未结 6 642
感情败类
感情败类 2020-12-24 08:45

I keep getting this error when i try to run my app:

C:/ruby-2.0.0-p195-i386-mingw32/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1 /lib/active_support/dependencies

6条回答
  •  北海茫月
    2020-12-24 09:32

    Until this problem is fixed, the best workaround is to install bcrypt-ruby from git:

    gem 'bcrypt-ruby', git: 'https://github.com/codahale/bcrypt-ruby.git', :require => 'bcrypt'
    

    Update (June 2016.) - as @gneri mentioned, bcrypt-ruby changed it's name to bcrypt, so use:

    gem 'bcrypt', git: 'https://github.com/codahale/bcrypt-ruby.git', :require => 'bcrypt'
    

提交回复
热议问题