Devise: How to create a new user being already logged in?

后端 未结 8 2088
独厮守ぢ
独厮守ぢ 2021-02-02 16:22

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 UsersControllerbut when

8条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 16:30

    @Mourkeer +1
    For simple_form 4.2.0 take @Mourkeer code and replace route.rb by:

    # route.rb
    devise_for :users, path_names: { registration: "registrations" } 
    

提交回复
热议问题