提交 a7d3851b 编写于 作者: K Kevin Moore

Documented about using :path option for resources

上级 4cd7c4e8
......@@ -1053,6 +1053,13 @@ def resource(*resources, &block)
#
# The above example will now change /posts/new to /posts/brand_new
#
# [:path]
# Allows you to change the path prefix for the resource.
#
# resources :posts, :path => 'postings'
#
# The resource and all segments will now route to /postings instead of /posts
#
# [:only]
# Only generate routes for the given actions.
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册