mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Document the :path option for resources :posts
This commit is contained in:
@@ -983,6 +983,14 @@ module ActionDispatch
|
||||
# resources :posts, :module => "admin"
|
||||
#
|
||||
# All requests to the posts resources will now go to +Admin::PostsController+.
|
||||
#
|
||||
# [:path]
|
||||
#
|
||||
# Set a path prefix for this resource.
|
||||
#
|
||||
# resources :posts, :path => "admin"
|
||||
#
|
||||
# All actions for this resource will now be at +/admin/posts+.
|
||||
def resources(*resources, &block)
|
||||
options = resources.extract_options!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user