Use Case:
- Admin should be able to create user, and it should not attempt to login.
- Public User can crate account and after signup he should be redirected to sign-in page rather signing him in immediately.
Can somebody help me with this ?
Thanks 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you need to do is to override Devise’s RegistrationsController create method.
There is an excellent explanation for how to do it here.
This is Devise create action:
After you override the controller, just remove
sign_in(resource_name, resource)You can also set the method
after_sign_up_path_for(resource)to fit your needs