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 :)
Use Case:
Can somebody help me with this ?
Thanks :)
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