Dr. Dobbs Journal published a great article, showing how to implement OpenID for Ruby on Rails.
The author, Jeremy Weiskotten, demonstrates how an OpenID consumer can be implemented using the Ruby on Rails framework. The article provides a short tutorial explaining how OpenID single sign on works, and why it’s important. Next it discusses several issues and complications. The final section provides a solid demonstration tutorial, with plenty of Ruby code examples and some screen shots.