Posted by Vince Wadhwani on Sep 17, 2008

I have an application that uses OpenID as an option for authentication. Sometimes I just happily go around installing new gems not worrying about whether it breaks my app. The new version of the open-id gem did just that. I thought I'd just upgrade the corresponding plugin and be on my way, but I was greeted with a nasty error:

undefined method `find_by_server_url_and_timestamp_and_salt' for #

Googling didn't help me out much but I did finally realize that the table structure has changed. So, if you had an old OpenID gem/plugin and are now using the new one, you'll also need to create a new migration:

script/generate upgrade_open_id_authentication_tables updateopenid
rake db:migrate

And with that..hopefully the error goes away.