Document the :path option for resources :posts

This commit is contained in:
Ryan Bigg
2010-11-24 09:28:21 +11:00
parent 01af50d8b6
commit fd47a4bf43

View File

@@ -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!