1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add :module option documentation for the resources method

This commit is contained in:
Ryan Bigg 2010-11-24 09:27:12 +11:00
parent 2974f57aae
commit 01af50d8b6

View file

@ -967,6 +967,7 @@ module ActionDispatch
# 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 @@ module ActionDispatch
# 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!