Show new registration form devise even when logged in

0

I'm working with the Gema devise for user authentication in my application, but I have the following doubt, I can create users without breaking into the system, but how do I manage to register them when logged in? (Show me the form) and do not skip the sign that I am already identified.

Thank you very much.

    
asked by Mosiah Ricardo 15.03.2017 в 08:08
source

2 answers

0

To solve my problem, create the views, the user driver, and in the model, remove the: registerable, add the corresponding parameters to the controller and I am already registering new users in the system.

    
answered by 21.03.2017 / 04:47
source
1

Using the gem activeadmin is a very good option to do that, the other thing you can do is run a seed with User.create (parameters) you can iterate it in a .times as many times as you want then rake db: seed and walaa you have several users

    
answered by 17.03.2017 в 01:09