I'm using active admin on rails 4, I white-listed the parameters for admin users in the controller using:
ActiveAdmin.register AdminUser do
controller do
def permitted_params
params.permit(:admin_user => [:email, :password, :password_confirmation])
end
end
end
but when I try to add a new user, I get the error "cannot be blank" on the email and password fields. The logs read the following:
Unpermitted parameters: utf8, authenticity_token, commit
Unpermitted parameters: utf8, authenticity_token, admin_user, commit
Is there something I'm missing?