# Ruby-openid 2

**URL:** <https://www.ruby-forum.com/t/ruby-openid-2/123986>\
**Category:** Rails\
**Created:** [December 23, 2007, 4:03am UTC](https://www.ruby-forum.com/t/ruby-openid-2/123986 "2007-12-23T04:03:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [December 23, 2007, 4:03am UTC](https://www.ruby-forum.com/t/ruby-openid-2/123986/1 "2007-12-23T04:03:40Z")

</div>

hi, i updated, ruby-openid, since then open\_id\_authentication plugin  
does not work anymore. did it happened to someone else?

---

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [December 23, 2007, 7:16am UTC](https://www.ruby-forum.com/t/ruby-openid-2/123986/2 "2007-12-23T07:16:07Z")

</div>

Jean-sÃ©bastien Jney wrote:

> hi, i updated, ruby-openid, since then open\_id\_authentication plugin  
> does not work anymore. did it happened to someone else?

I’m getting the same problem. I have to upgrade rubygems to get rails 2  
up and running on my existing app. I started getting “undefined method  
`require\_gem’” errors from ruby-openid 1.1.4, so I updated the gem to  
version 2.0.2.

Now the ruby-openid gem appears to have changed its interface a bit. I  
get

uninitialized constant OpenID::Store  
/vendor/plugins/open\_id\_authentication/lib/open\_id\_authentication/db\_store.rb:2

Looking in the plugin I can see that db\_store.rb is defining a class  
that inherits from OpenID::Store, like so:

module OpenIdAuthentication  
class DbStore \< OpenID::Store

But in the gem, its defined differently.

module OpenID  
module Store  
class Interface \< Object

First of all the plugin is not requiring the openid store classes, and  
second you can’t inherit from a Module.

This seems like this is a version issue, the plugin is not meant to work  
with ruby-openid 2 just yet. Although I cant revert to the old 1.1.4  
because it gives me:

undefined method `require\_gem’

when the app loads on my newly updated rubygems 1.0.1.

Any help here? Do I have to revert my version rubygems back to pre 1.0  
so that these “require\_gem” errors go away? Is there some global  
alias\_method mnkey patch I can do to make require\_gem not broken?

---

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [December 23, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/ruby-openid-2/123986/3 "2007-12-23T20:33:38Z")

</div>

Jean-sÃ©bastien Jney wrote:

> hi, i updated, ruby-openid, since then open\_id\_authentication plugin  
> does not work anymore. did it happened to someone else?

On further investigation of the rails trac,  
[http://dev.rubyonrails.org/ticket/10604](http://dev.rubyonrails.org/ticket/10604)

Looks theres a patch, lt me see if I can figure out how to install it.
