mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fixing incorrect documentation
`path_names` can only be used for affecting `new` and `edit`
This commit is contained in:
@@ -1046,8 +1046,8 @@ module ActionDispatch
|
||||
# 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" }
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user