ruby-on-rails – Rails,OpenID和Authlogic

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – Rails,OpenID和Authlogic前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我一直在追踪 ryan baytes screencast #170,并将 ruby-openid,authlogicauthlogic-oid添加到现有的authlogic身份验证系统中.

但是,我不断收到以下堆栈的错误

NameError(未初始化的常量OpenIdAuthentication :: InvalidOpenId):
/Library/Ruby/Gems/1.8/gems/authlogic_oid-1.0.4/lib/authlogic_openid/session.rb:53:in openid_identifier =’
/Library/Ruby/Gems/1.8/gems/authlogic-oid-1.0.4/lib/authlogic_openid/session.rb:47:incredentials=”
authlogic(2.1.2)lib / authlogic / session / foundation.rb:28:在初始化’
authlogic(2.1.2)lib / authlogic / session / password.rb:140:ininitialize’
authlogic(2.1.2)lib / authlogic / session / activation.rb:48:在初始化’
authlogic(2.1.2)lib / authlogic / session / klass.rb:61:ininitialize’
authlogic(2.1.2)lib / authlogic / session / scopes.rb:79:在初始化’
应用程序/控制器/ user_sessions_controller.rb:10:innew”
app / controllers / user_sessions_controller.rb:10:在`create’

有没有人面对同样的问题?我正在使用rails 2.3.4

我试过binary’s example app这是非常好的工作(rails 2.1.2),我已经尝试了the code provided by ryan bates,它的工作也很好(rails 2.3.2).因此,这些库正在使用以前版本的rails.

任何线索?

解决方法

rails / open_id_authentication插件几天前已经更新,它破坏了与authlogic_openid gem(v = 1.0.4)的兼容性.

你必须等到有人修复authlogic_openid宝石(这个问题)

原文链接:https://www.f2er.com/ruby/266693.html

猜你在找的Ruby相关文章