open_id_authentication - authenticate_with_open_id

I'm using the open_id_authentication plugin just like the README says. However, when I submit my openid_url, the authenticate_with_open_id method gives me the error below.

vendor/plugins/open_id_authentication/lib/open_id_authentication.rb: 150:in `+' vendor/plugins/open_id_authentication/lib/open_id_authentication.rb: 150:in `requested_url' vendor/plugins/open_id_authentication/lib/open_id_authentication.rb: 146:in `open_id_redirect_url' vendor/plugins/open_id_authentication/lib/open_id_authentication.rb: 97:in `begin_open_id_authentication' vendor/plugins/open_id_authentication/lib/open_id_authentication.rb: 86:in `authenticate_with_open_id' app/controllers/account_controller.rb:33:in `open_id_authentication' app/controllers/account_controller.rb:12:in `create'

It seems to be failing here, but I have no idea why...

def requested_url   "#{request.protocol + request.host_with_port + request.relative_url_root + request.path}" end

I've tested to ensure that "username.myopenid.com" is being passed as the openid_url parameter. Am I missing something else?

If I change the url, it starts works except the redirect back is wrong...

def requested_url   "#{open_id_complete_url}" end

Any ideas why the normal request would be null?... "#{request.protocol + request.host_with_port + request.relative_url_root + request.path}"

If anyone else ever runs into this problem (because I just did again), I removed request.relative_url_root and it works now...

def requested_url   # "#{request.protocol + request.host_with_port + request.relative_url_root + request.path}"   "#{request.protocol + request.host_with_port + request.path}" end

The original code gave this error...

can't convert nil into String

vendor/plugins/open_id_authentication/lib/open_id_authentication.rb: 154:in `+'