提交 e3bc1385 编写于 作者: A Aviv Ben-Yosef

Fixing incorrect documentation

`path_names` can only be used for affecting `new` and `edit`
上级 237272e0
......@@ -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" }
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册