I\'m going to create a multi user app, so, I will have a admin user that will have permission to create new ones.
I\'ve created the UsersController
but when
In a controller method can't you just go:
def create_user
@user = User.new(:email => params[:email], :password => params[:password])
@user.save
...
end
I added in the Registrations Controller:
class RegistrationsController < Devise::RegistrationsController
...
skip_before_action :require_no_authentication, only: [:new, :create]
...
end
And it worked for me. I can now go and create a new user.