0

I'd like to make activeadmin interface to respond at a url like this

http://somesite.com/long_and_strange_string_of_charaters 

Does anybody know how to do it?

I think that a website should give a 404 not found on the admin subpage.

http://somesite.com/admin  => 404

I think it is a security issue that a hacker gets a form to play with on this url.

With this in the routes.rb

ActiveAdmin.routes(self)

You get the admin interface on the /admin route

4

1 回答 1

5

应该在文档中阅读更多内容。

在 config/initializers/active_admin.rb

ActiveAdmin.setup do |config|
   config.default_namespace = :long_and_strange_string_of_charaters
end

希望它会在某个时候对某人有所帮助。

于 2013-09-17T10:23:35.987 回答