Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sign_up helper #37

Closed
andreasseiler opened this issue Sep 29, 2014 · 5 comments
Closed

sign_up helper #37

andreasseiler opened this issue Sep 29, 2014 · 5 comments

Comments

@andreasseiler
Copy link

Hi there,

thanks again for the explanation on the email confirmation. I have another question about your gem. Is it possible to call the sign_up method from another controller inside my rails project? In my application it should be possible for signed in users to add new users. In devise there is a helper method (sign_up in Devise::Controllers::Helpers)

Thanks in advance,
Andi

@lynndylanhurley
Copy link
Owner

@andreasseiler - Two questions:

  1. I can't find any reference to a sign_up helper in Devise::Controllers::Helpers. Can you point me to the docs (or code) for this?
  2. What is the difference between the sign_up method and simply calling User.new or User.create?

@andreasseiler
Copy link
Author

My bad ... sorry. There is no helper method sign_up...

But thanks for the response to that silly question ;)

Andi

@lynndylanhurley
Copy link
Owner

No problem! 😃

@andreasseiler
Copy link
Author

One thing i recocnised with User.new ... the uid is not set when I create a new user. Is that a intended behaviour?

@andreasseiler andreasseiler reopened this Oct 5, 2014
@lynndylanhurley
Copy link
Owner

The uid value will be one of the following:

  • Email address when using email registration.
  • Provider uid (facebook id, twitter id, etc.) when using OAuth.

These values originate from outside of our application. So the uid value can't be set automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants