ruby-on-rails – 如何解决这个错误? config.gem:未包装的gem authlogic-2.1.3在vendor / gems中没有规范文件

启动我的Mongrel服务器时收到此错误…
$script/server --debugger
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
=> Debugger enabled
=> Call with -d to detach
=> Ctrl-C to shutdown server

当我运行rake宝石:refresh_specs喜欢它建议我得到另一个错误:

rake aborted!
undefined method `installed_source_index' for #<Gem::SourceIndex:0x100551a58>

关于如何解决这个问题的任何想法?

解决方法

我不知道为什么它在Authlogic被打破了,但是我自己必须生成它.

在您的Rails项目中尝试这样做:

$提示> cd vendor / gems / authlogic-2.1.3

$提示>宝石规范authlogic> .规范

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...