【发布时间】:2016-02-16 02:11:07
【问题描述】:
我正在使用 ruby 2.2.4。安装 Devise gem 后尝试注册时出现此错误。我以前使用 ruby 2.1.5 时从未遇到过这个错误。是ruby版本导致这里出错的原因吗?
更新:这是我的 gemfile 的样子,我使用的是 Windows 7 Professional 64 位
source 'https://rubygems.org'
gem 'rails', '4.2.5.1'
gem 'sqlite3'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'simple_form', '~> 3.2', '>= 3.2.1'
gem 'country_select', '~> 2.5', '>= 2.5.1'
gem 'devise', '~> 3.5', '>= 3.5.6'
group :doc do
gem 'sdoc', '~> 0.4.0'
end
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
【问题讨论】:
-
查看您的 gemfile 并发布您的应用程序正在使用的 bcrypt 版本。让我们知道您使用的是什么操作系统。
-
@MarsAtomic 请看我的更新!
标签: ruby-on-rails devise