Permalink
Browse files

Fixing incorrect documentation

`path_names` can only be used for affecting `new` and `edit`
  • Loading branch information...
1 parent 237272e commit e3bc1385f1e8d2816deb215880d99aca136c0cc3 @abyx abyx committed Nov 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1046,8 +1046,8 @@ def resource(*resources, &block)
# Takes same options as <tt>Base#match</tt> as well as:
#
# [:path_names]
- # Allows you to change the paths of the seven default actions.
- # Paths not specified are not changed.
+ # Allows you to change the segment component of the +edit+ and +new+ actions.
+ # Actions not specified are not changed.
#
# resources :posts, :path_names => { :new => "brand_new" }
#

0 comments on commit e3bc138

Please sign in to comment.