Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing incorrect documentation

`path_names` can only be used for affecting `new` and `edit`
  • Loading branch information...
commit e3bc1385f1e8d2816deb215880d99aca136c0cc3 1 parent 237272e
Aviv Ben-Yosef abyx authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/routing/mapper.rb
4 actionpack/lib/action_dispatch/routing/mapper.rb
View
@@ -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" }
#
Please sign in to comment.
Something went wrong with that request. Please try again.