diff options
Diffstat (limited to 'actionpack/lib')
| -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 cc013ac072..8b5d7d307b 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -911,6 +911,14 @@ 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. +        #   Paths not specified are not changed. +        # +        #     resources :posts, :path_names => { :new => "brand_new" } +        # +        #   The above example will now change /posts/new to /posts/brand_new          def resources(*resources, &block)            options = resources.extract_options!  | 
