bcrypt error: Devise ruby 2.0 and rails 4.0

前端 未结 6 643
感情败类
感情败类 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:30

    On problem with has_secure_password on Window 7 helps this

    gem uninstall bcrypt-ruby

    gem uninstall bcrypt

    gem install bcrypt-ruby --platform=ruby --no-ri --no-rdoc

    gem install bcrypt --platform=ruby --no-ri --no-rdoc

    Add to Gemfile:

    gem 'bcrypt-ruby', '~> 3.0.0', :require => 'bcrypt'
    gem 'bcrypt'
    

    bundle install

提交回复
热议问题