I've been following [ryan baytes screencast #170](http://railscasts.com/episodes/170-openid-with-authlogic) and adding [ruby-openid](http://github.com/pelle/ruby-openid), [authlogic](http://github.com/binarylogic/authlogic) and [authlogic-oid](http://github.com/binarylogic/authlogic_openid) to an existing authlogic authentication system.

However, I keep getting the following stack of errors:

NameError (uninitialized constant 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:in`credentials='
 authlogic (2.1.2) lib/authlogic/session/foundation.rb:28:in `initialize'
 authlogic (2.1.2) lib/authlogic/session/password.rb:140:in`initialize'
 authlogic (2.1.2) lib/authlogic/session/activation.rb:48:in `initialize'
 authlogic (2.1.2) lib/authlogic/session/klass.rb:61:in`initialize'
 authlogic (2.1.2) lib/authlogic/session/scopes.rb:79:in `initialize'
 app/controllers/user_sessions_controller.rb:10:in`new'
 app/controllers/user\_sessions\_controller.rb:10:in `create'

Is there anyone who's facing the same kind of problem? I'm using rails 2.3.4

I've tried [binary's example app](http://github.com/binarylogic/authlogic_openid) which is working perfectly well (rails 2.1.2), I've tried [the code provided by Ryan Bates](http://asciicasts.com/episodes/170-openid-with-authlogic) and it is working well too (rails 2.3.2). So, the libraries are working with previous versions of rails.

Any clues?