gregbell/active_admin — pull request #2837 by gaurish (2014-01-01 15:58:44+00:00)
Title: Define a named root path, if namespace is root

This is done to avoid following error

```ruby
/home/gaurish/.rvm/gems/ruby-2.1.0/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:434:in `add_route': Invalid route name, already in use: 'root' (ArgumentError)
You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here:
http://guides.rubyonrails.org/routing.html#restricting-the-routes-created
```

**When This error occurs:**
if `config.default_namespace = false`
if AA is mounted on subdomain
if there is existing root path default.

Using the `as` option avoids conflict with existing root path of the app.