mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Add documentation for :path_names option on resources
This commit is contained in:
@@ -911,6 +911,14 @@ 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.
|
||||
# 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!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user