I'm having problems with Simple Registration Extension with the Ruby
OpenID Login Generator. The code executes without error; but the
provider apparently returns only the sreg.email field, and none of the
others (e.g., sreg.gender, sreg.postcode, etc).
I'm using MyOpenID.com as the provider as they've announced support
for Simple Registration Extension.
Here is the code segment from the openid_account_controller/complete
method (where the user is create and the extended data is append):
# create user object if one does not exist
if @user.nil ?
registration_info = response.extension_response('sreg')
@user = User.new(:openid_url => response.identity_url)
@user.email = registration_info['email']
@user.gender = registration_info['gender']
The code executes without any errors. However, when I check the user
table, *only* the email field is populated; the gender field is not.
Any idea what may be causing the problem? Thx,