Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the default URL of ActiveAdmin?

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

like image 311
santschi Avatar asked Jul 27 '12 15:07

santschi


People also ask

What is active admin?

Active Admin is a Ruby on Rails plugin for generating administration style interfaces. It abstracts common business application patterns to make it simple for developers to implement beautiful and elegant interfaces with very little effort.


1 Answers

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).

like image 63
Amir Avatar answered Oct 22 '22 08:10

Amir