提交 01af50d8 编写于 作者: R Ryan Bigg

Add :module option documentation for the resources method

上级 2974f57a
......@@ -967,6 +967,7 @@ 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.
......@@ -975,6 +976,13 @@ def resource(*resources, &block)
# resources :posts, :path_names => { :new => "brand_new" }
#
# The above example will now change /posts/new to /posts/brand_new
#
# [:module]
# Set the module where the controller can be found. Defaults to nothing.
#
# resources :posts, :module => "admin"
#
# All requests to the posts resources will now go to +Admin::PostsController+.
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.
先完成此消息的编辑!
想要评论请 注册