Creating a new admin user in activeadmin
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?
I was also facing the same issue. Changing params.permit(:admin_user => [:email, :password, :password_confirmation]) to params.permit(:user => [:email, :password, :password_confirmation]) solved the issue. devise in active admin creates model with name user and in active admin user model, its mentioned as admin_user.
In my case it was happenning because i had a validation for an associated record on that model. Disabling that validation fixes it, will need to check how to disable validations for active admin only.
How to customize site_title_link of active_admin?
rails mountable engine I used rails 4.2.8 and try to install active admin, It's give me error like this
Is it possible to render subscript and superscript in ActiveAdmin pages?
How to make a form row's label into a selection input for a different attribute in ActiveAdmin?
How to use Money filter in active admin?
Can a rubocop check be disabled on certain paths only?
Render plain form html from ActiveAdmin instead of full page
Customize ActiveAdmin Page based on Roles
NoMethodError error for search_methods activeadmin
rails concerns - superclass mismatch error with active_admin in gems list
How to filter by “is not” in active admin/ransack
Active Admin image upload with refile
AuthorizationAdapter in ActiveAdmin
ActiveAdmin and Rails Engine. How do you keep the path name the same?
Active admin defining scope for custom page
ActiveAdmin: Can I redirect the user to the index after they create/edit something?