提交 00f80029 编写于 作者: C Carlos Antonio da Silva

Merge pull request #9446 from bemurphy/enhance_root_route_guide

Add routing guide doc on root with namespaces. [ci skip]
......@@ -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:
```ruby
namespace :admin do
root to: "admin#index"
end
root to: "home#index"
```
### Unicode character routes
You can specify unicode character routes directly. For example:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册