Can't create new user with ActiveAdmin

前端 未结 4 1824
南笙
南笙 2020-12-20 06:31

I just added active admin to my rails app and I\'m unable to create a new user. I am using the user model that active admin creates with a few added columns like first and

4条回答
  •  佛祖请我去吃肉
    2020-12-20 07:00

    My solution:

    ActiveAdmin.register User do
      permit_params [:email, :password, :password_confirmation] 
    
      form do |f|
          f.inputs "User" do
            f.input :email
            f.input :password
            f.input :password_confirmation
          end
          f.actions
        end
    end
    

提交回复
热议问题