Documented about using :path option for resources

This commit is contained in:
Kevin Moore 2011-12-28 10:59:28 -08:00
parent 4cd7c4e8ce
commit a7d3851bdb

@ -1053,6 +1053,13 @@ def resource(*resources, &block)
#
# The above example will now change /posts/new to /posts/brand_new
#
# [:path]
# Allows you to change the path prefix for the resource.
#
# resources :posts, :path => 'postings'
#
# The resource and all segments will now route to /postings instead of /posts
#
# [:only]
# Only generate routes for the given actions.
#