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:
parent
2974f57aae
commit
01af50d8b6
1 changed files with 8 additions and 0 deletions
|
@ -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!
|
||||
|
||||
|
|
Loading…
Reference in a new issue