diff options
author | Kevin Moore <kevin@thinkpixellab.com> | 2011-12-28 10:59:28 -0800 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-12-29 23:39:06 +0530 |
commit | 2e533e3435f6c7e3cd7503b7f997344edd39f1c7 (patch) | |
tree | d1350e1b0fd2057afb7a54ddfb34d6496456d5b3 /actionpack/lib/action_dispatch/routing/mapper.rb | |
parent | 5f57d2ad907c09d2070fe4015aa167a550fcf80a (diff) | |
download | rails-2e533e3435f6c7e3cd7503b7f997344edd39f1c7.tar.gz rails-2e533e3435f6c7e3cd7503b7f997344edd39f1c7.tar.bz2 rails-2e533e3435f6c7e3cd7503b7f997344edd39f1c7.zip |
Documented about using :path option for resources
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 7 |
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 8667f5fb90..9e59861e01 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. # |