diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2010-11-24 09:28:21 +1100 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2010-11-24 09:28:21 +1100 |
commit | fd47a4bf438e37a20756e0341cd7cd4e472fd3cb (patch) | |
tree | aab3d835bfdd1fd310d6567b18d7b218d5916965 /actionpack | |
parent | 01af50d8b6be7b167c30f29c7407ce88bdfc9b2a (diff) | |
download | rails-fd47a4bf438e37a20756e0341cd7cd4e472fd3cb.tar.gz rails-fd47a4bf438e37a20756e0341cd7cd4e472fd3cb.tar.bz2 rails-fd47a4bf438e37a20756e0341cd7cd4e472fd3cb.zip |
Document the :path option for resources :posts
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 1f3a831b7f..f4d31eeff1 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -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! |