提交 fe8446fc 编写于 作者: R Ryan Bigg

Add documentation for :path_names option on resources

上级 95f41fe1
......@@ -911,6 +911,14 @@ def resource(*resources, &block)
# GET /photos/:id/edit
# PUT /photos/:id
# DELETE /photos/:id
# === Supported options
# [:path_names]
# Allows you to change the paths of the seven default actions.
# Paths not specified are not changed.
#
# resources :posts, :path_names => { :new => "brand_new" }
#
# The above example will now change /posts/new to /posts/brand_new
def resources(*resources, &block)
options = resources.extract_options!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册