How can I change the default URL of ActiveAdmin?

santschi picture santschi · Jul 27, 2012 · Viewed 7.7k times · Source

By default, ActiveAdmin is running under /admin. Is there any way change that?

Answer

Amir picture Amir · Oct 19, 2012

Yes. You need to add the following line to the config/initializers/active_admin.rb file:

config.default_namespace = :your_desired_namespace

This will create a http://yourdomain.name/your_desired_namespace

Do note, that you will need to update your routes accordingly (i.e admin_user_path will become your_desired_namespace_user_path).