OpenId + Bort + google
- by zakurahime
Hi 
I'm new in using ruby and i wanted to implement the openid feature that came with the bort template... I used the google openid url https://www.google.com/accounts/o8/id in the sign up but it cant get the email that i used in the openid login.. 
here's a part of my code... its the standard code from the bort template
def create
logout_keeping_session!
if using_open_id?
  authenticate_with_open_id(params[:openid_url], :return_to => open_id_create_url, 
    :required => [:nickname, :email]) do |result, identity_url, registration|
    if result.successful?
      create_new_user(:identity_url => identity_url, :login => registration['nickname'], :email => registration['email'])
    else
      failed_creation(result.message || "Sorry, something went wrong")
    end
  end
else
  create_new_user(params[:user])
end
end
i will really appreciate any help on this.. i've been stuck with this for a few days now.. 
thanks