Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add routing guide doc on root with namespaces.

I read #9419 and realized I didn't know you could have namespaced
roots, checked around, and a few friends didn't either.  Figured
this makes it guide worthy.
  • Loading branch information...
commit a025cd743cbe26a9ff1a662fb9e6aa917bebd842 1 parent b1dee8c
@bemurphy bemurphy authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 guides/source/
10 guides/source/
@@ -797,6 +797,16 @@ You should put the `root` route at the top of the file, because it is the most p
NOTE: The `root` route only routes `GET` requests to the action.
+You can also use root inside namespaces and scopes as well. For example:
+namespace :admin do
+ root to: "admin#index"
+root to: "home#index"
### Unicode character routes
You can specify unicode character routes directly. For example:
Please sign in to comment.
Something went wrong with that request. Please try again.