aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-11-24 09:27:12 +1100
committerRyan Bigg <radarlistener@gmail.com>2010-11-24 09:27:12 +1100
commit01af50d8b6be7b167c30f29c7407ce88bdfc9b2a (patch)
tree93b23925754a982cfbc01b31b0bb05fe85d0647a /actionpack
parent2974f57aaedd22f44b387ec72ca9f42a2982bb02 (diff)
downloadrails-01af50d8b6be7b167c30f29c7407ce88bdfc9b2a.tar.gz
rails-01af50d8b6be7b167c30f29c7407ce88bdfc9b2a.tar.bz2
rails-01af50d8b6be7b167c30f29c7407ce88bdfc9b2a.zip
Add :module option documentation for the resources method
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb8
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 8b1578769d..1f3a831b7f 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -967,6 +967,7 @@ 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.
@@ -975,6 +976,13 @@ module ActionDispatch
# resources :posts, :path_names => { :new => "brand_new" }
#
# The above example will now change /posts/new to /posts/brand_new
+ #
+ # [:module]
+ # Set the module where the controller can be found. Defaults to nothing.
+ #
+ # resources :posts, :module => "admin"
+ #
+ # All requests to the posts resources will now go to +Admin::PostsController+.
def resources(*resources, &block)
options = resources.extract_options!