Skip to content

Commit

Permalink
Documented about using :path option for resources
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Dec 28, 2011
1 parent 4cd7c4e commit a7d3851
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions actionpack/lib/action_dispatch/routing/mapper.rb
Expand Up @@ -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.
#
Expand Down

0 comments on commit a7d3851

Please sign in to comment.