aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-12-29 23:35:45 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-12-29 23:35:45 +0530
commit04d308a03bbd904bac62f9c5453da37de940adc6 (patch)
tree697a86ecc7e714fb3ce897ed05bd956077d680c3 /actionpack/lib/action_dispatch
parent88aeeee288641a3009f05574079d4c50277e77a5 (diff)
parent1fc6036b4b2fe314e30513925fd6b42a2b634b4b (diff)
downloadrails-04d308a03bbd904bac62f9c5453da37de940adc6.tar.gz
rails-04d308a03bbd904bac62f9c5453da37de940adc6.tar.bz2
rails-04d308a03bbd904bac62f9c5453da37de940adc6.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index ce4d407217..db1e3198b3 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1053,6 +1053,13 @@ module ActionDispatch
#
# The above example will now change /posts/new to /posts/brand_new
#
+ # [:path]
+ # Allows you to change the path prefix for the resource.
+ #
+ # resources :posts, :path => 'postings'
+ #
+ # The resource and all segments will now route to /postings instead of /posts
+ #
# [:only]
# Only generate routes for the given actions.
#