Permalink
Browse files

Paths in ActionDispatch::Scoping documentation should be for /admin/p…

…osts, not /admin/photos
  • Loading branch information...
1 parent 7695753 commit 04af510b5678ea7bd4cd170257e7e3ef4423f834 @radar radar committed Nov 23, 2010
Showing with 14 additions and 14 deletions.
  1. +14 −14 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -439,13 +439,13 @@ def map_method(method, *args, &block)
# This will create a number of routes for each of the posts and comments
# controller. For Admin::PostsController, Rails will create:
#
- # GET /admin/photos
- # GET /admin/photos/new
- # POST /admin/photos
- # GET /admin/photos/1
- # GET /admin/photos/1/edit
- # PUT /admin/photos/1
- # DELETE /admin/photos/1
+ # GET /admin/posts
+ # GET /admin/posts/new
+ # POST /admin/posts
+ # GET /admin/posts/1
+ # GET /admin/posts/1/edit
+ # PUT /admin/posts/1
+ # DELETE /admin/posts/1
#
# If you want to route /posts (without the prefix /admin) to
# Admin::PostsController, you could use
@@ -473,13 +473,13 @@ def map_method(method, *args, &block)
# not use scope. In the last case, the following paths map to
# PostsController:
#
- # GET /admin/photos
- # GET /admin/photos/new
- # POST /admin/photos
- # GET /admin/photos/1
- # GET /admin/photos/1/edit
- # PUT /admin/photos/1
- # DELETE /admin/photos/1
+ # GET /admin/posts
+ # GET /admin/posts/new
+ # POST /admin/posts
+ # GET /admin/posts/1
+ # GET /admin/posts/1/edit
+ # PUT /admin/posts/1
+ # DELETE /admin/posts/1
module Scoping
def initialize(*args) #:nodoc:
@scope = {}

0 comments on commit 04af510

Please sign in to comment.