Skip to content

Commit

Permalink
Document the :path option for resources :posts
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Nov 23, 2010
1 parent 01af50d commit fd47a4b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions actionpack/lib/action_dispatch/routing/mapper.rb
Expand Up @@ -983,6 +983,14 @@ def resource(*resources, &block)
# 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!

Expand Down

0 comments on commit fd47a4b

Please sign in to comment.