Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

undefined method `email_autoset=' or Column 'email' cannot be null #3

@ghost

Description

Hi. Im trying to run your example and have the first error (undefined method `email_autoset=') in my User model. When I changing 'self_email_autoset' to just 'email_autoset' I have another one - 'Column 'email' cannot be null'.

So as I think, In second case my app doesn't get email from OpenID provider (Google in my case) even if provider send it. There is part of the link to which Google redirect me after validating:

&openid.ext1.type.ext0=http%3A%2F%2Faxschema.org%2Fcontact%2Femail&openid.ext1.value.ext0=myemail%40gmail.com

As you can see 'openid.ext1.value.ext0' is containing my email.

P.s. Im riding Rails 3.0.3 and Ruby 1.9.2. And Im using both lib files from vendor folder (session.rb and acts_as_authentic.rb).

UPD: I forgot to take your version of "open_id_authentication" (dont know where did you take it, current version of it much differs). So now I have another funny error: "uninitialized constant Rack::OpenID" (Yes, I have "rack-openid" installed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions