Ruby on rails 设计:新错误(Encrytable)

Ruby on rails 设计:新错误(Encrytable),ruby-on-rails,devise,Ruby On Rails,Devise,我已经一个星期没有接触过我的代码了,但是当我捆绑,然后试图运行我的Web服务器时,我现在得到了以下错误,这些错误让我陷入了困境。在错误输出中包含建议的Desive encryptable gem并不能解决问题,仍然会导致相同的错误。非常感谢您的帮助 [DEVISE] Devise.apply_schema is deprecated and has no effect. Please remove it. [DEVISE] To select a encryption which isn't

我已经一个星期没有接触过我的代码了,但是当我捆绑,然后试图运行我的Web服务器时,我现在得到了以下错误,这些错误让我陷入了困境。在错误输出中包含建议的Desive encryptable gem并不能解决问题,仍然会导致相同的错误。非常感谢您的帮助

[DEVISE] Devise.apply_schema is deprecated and has no effect. Please remove it.


[DEVISE] To select a encryption which isn't bcrypt, you should use devise-encryp
table gem.


[DEVISE] Devise.use_salt_as_remember_token is deprecated and has no effect. Plea
se remove it.

/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.1/lib/action_d
ispatch/http/mime_type.rb:101: warning: already initialized constant PDF
[DEVISE] You're trying to include :encryptable in your model but it is not bundl
ed with the Devise gem anymore. Please add `devise-encryptable` to your Gemfile 
to proceed.

/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib/devise/model
s.rb:96:in `const_get': uninitialized constant Devise::Models::Encryptable (Name
Error)
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/models.rb:96:in `block (2 levels) in devise'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/models.rb:91:in `each'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/models.rb:91:in `block in devise'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/models.rb:122:in `devise_modules_hook!'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/models.rb:89:in `devise'
        from /Users/sa/Documents/AptanaWorkspace/sparkv1/app/models/sa
as_admin.rb:4:in `<class:SaasAdmin>'
        from /Users/sa/Documents/AptanaWorkspace/sparkv1/app/models/sa
as_admin.rb:1:in `<top (required)>'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.
2.1/lib/active_support/inflector/methods.rb:229:in `block in constantize'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.
2.1/lib/active_support/inflector/methods.rb:228:in `each'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.
2.1/lib/active_support/inflector/methods.rb:228:in `constantize'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise.rb:252:in `get'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/mapping.rb:77:in `to'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/mapping.rb:72:in `modules'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/mapping.rb:89:in `routes'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/mapping.rb:156:in `default_used_route'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/mapping.rb:66:in `initialize'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise.rb:286:in `new'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise.rb:286:in `add_mapping'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/rails/routes.rb:207:in `block in devise_for'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/rails/routes.rb:206:in `each'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.0/lib
/devise/rails/routes.rb:206:in `devise_for'
        from /Users/sa/Documents/AptanaWorkspace/sparkv1/config/routes
.rb:8:in `block in <top (required)>'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.1
/lib/action_dispatch/routing/route_set.rb:272:in `instance_exec'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.1
/lib/action_dispatch/routing/route_set.rb:272:in `eval_block'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.1
/lib/action_dispatch/routing/route_set.rb:249:in `draw'
        from /Users/sa/Documents/AptanaWorkspace/sparkv1/config/routes
.rb:7:in `<top (required)>'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes_reloader.rb:40:in `block in load_paths'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes_reloader.rb:40:in `each'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes_reloader.rb:40:in `load_paths'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes_reloader.rb:16:in `reload!'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes_reloader.rb:26:in `block in updater'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.
2.1/lib/active_support/file_update_checker.rb:78:in `call'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.
2.1/lib/active_support/file_update_checker.rb:78:in `execute'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes_reloader.rb:27:in `updater'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/finisher.rb:66:in `block in <module:Finisher>'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/initializable.rb:30:in `instance_exec'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/initializable.rb:30:in `run'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/initializable.rb:55:in `block in run_initializers'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/initializable.rb:54:in `each'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/initializable.rb:54:in `run_initializers'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application.rb:136:in `initialize!'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/railtie/configurable.rb:30:in `method_missing'
        from /Users/sa/Documents/AptanaWorkspace/sparkv1/config/enviro
nment.rb:5:in `<top (required)>'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application.rb:103:in `require_environment!'
        from /Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/commands.rb:25:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'
[designe]designe.apply\u架构已被弃用,且无效。请把它拿走。
[设计]要选择非bcrypt的加密,应使用设计encryp
桌上的宝石。
[Deviate]Deviate.use_salt_,因为_Memory_代币已弃用且无效。恳求
请把它取下来。
/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.1/lib/action\u d
ispatch/http/mime_type.rb:101:警告:已初始化常量PDF
[Desive]您试图在您的模型中包括:encryptable,但它不是捆绑的
我再也不喜欢设计宝石了。请将“设计可加密”添加到您的文件中
继续。
/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib/designe/model
s、 rb:96:in'const_get':未初始化的常量designe::Models::Encryptable(名称)
(错误)
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/模型。rb:96:在“设计中的块(2级)”中
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/模型。rb:91:in'each'
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/模型。rb:91:“设计中的块”中
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/模型.rb:122:in‘设计模块’
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/模型。rb:89:in“designe”
来自/Users/sa/Documents/AptanaWorkspace/sparkv1/app/models/sa
as_admin.rb:4:in`'
来自/Users/sa/Documents/AptanaWorkspace/sparkv1/app/models/sa
as_admin.rb:1:in`'
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3。
2.1/lib/active_support/definctor/methods.rb:229:in‘block in constantize’
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3。
2.1/lib/active_support/definctor/methods.rb:228:in'each'
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3。
2.1/lib/active_support/endoctor/methods.rb:228:in'constantize'
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计.rb:252:in'get'
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/绘图。rb:77:in“to”
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/绘图。rb:72:in“模块”
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/制图。rb:89:in“路线”
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/映射.rb:156:在“默认使用的路径”中
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/映射。rb:66:in“initialize”
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/Desive.rb:286:in‘new’
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/designe.rb:286:in'add_mapping'
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/轨道/路线。rb:207:“设计中的块”
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/轨道/路线。rb:206:in'each'
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/designe-2.1.0/lib
/设计/轨道/路线
来自/Users/sa/Documents/AptanaWorkspace/sparkv1/config/routes
.rb:8:in'block in'
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.1
/lib/action\u dispatch/routing/route\u set.rb:272:in`instance\u exec'
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.1
/lib/action\u dispatch/routing/route\u set.rb:272:in'eval\u block'
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.1
/lib/action\u dispatch/routing/route\u set.rb:249:in'draw'
来自/Users/sa/Documents/AptanaWorkspace/sparkv1/config/routes
.rb:7:in`'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes\u reloader.rb:40:in`block in load\u path'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes\u reloader.rb:40:in‘each’
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes\u reloader.rb:40:in'load\u path'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes_reloader.rb:16:in'reload!'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes_reloader.rb:26:in`block in updater'
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3。
2.1/lib/active\u support/file\u update\u checker.rb:78:in'call'
来自/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3。
2.1/lib/active\u support/file\u update\u checker.rb:78:in'execute'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes_reloader.rb:27:in'updater'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/routes\u reloader.rb:7:in'execute\u if\u updated'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/application/finisher.rb:66:in'block-in'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/initializable.rb:30:in'instance_exec'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/initializable.rb:30:in'run'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/initializable.rb:55:in`block in run_initializers'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/initializable.rb:54:in'each'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/initializable.rb:54:in'run_initializers'
from/Users/sa/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/l
ib/rails/a
# Automatically apply schema changes in tableless databases
config.apply_schema = false

# If true, uses the password salt as remember token. This should be turned
# to false if you are not using database authenticatable.
config.use_salt_as_remember_token = true