0

I tried to search the answer in many resources but could not find it. Also could not see it in routes.

I have:

devise_for :admin_users, ActiveAdmin::Devise.config
ActiveAdmin.routes(self)
3
  • Do you see Admin Users tab in your active admin panel?
    – Gautam
    Commented Jan 19, 2020 at 10:03
  • You mean AdminUser resource? Yes, but it allows to manage all users. But I need a separate page to edit only own profile. Commented Jan 19, 2020 at 10:12
  • In vanilla Devise devise_for :admin_users would create the helper edit_admin_users_path and the path /admin_users/edit which is handled by Devise::RegistrationsController#edit - the route has no id segment since it only edits the signed in user. I have no idea what ActiveAdmin::Devise.config contains but you could just use byebug or pry to insert a breakpoint and inspect it and see if it changes the routes or skips them.
    – max
    Commented Jan 19, 2020 at 17:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.