Skip to content
This repository
Browse code

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

…osts, not /admin/photos
  • Loading branch information...
commit 04af510b5678ea7bd4cd170257e7e3ef4423f834 1 parent 7695753
Ryan Bigg radar authored

Showing 1 changed file with 14 additions and 14 deletions. Show diff stats Hide diff stats

  1. +14 14 actionpack/lib/action_dispatch/routing/mapper.rb
28 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -439,13 +439,13 @@ def map_method(method, *args, &block)
439 439 # This will create a number of routes for each of the posts and comments
440 440 # controller. For Admin::PostsController, Rails will create:
441 441 #
442   - # GET /admin/photos
443   - # GET /admin/photos/new
444   - # POST /admin/photos
445   - # GET /admin/photos/1
446   - # GET /admin/photos/1/edit
447   - # PUT /admin/photos/1
448   - # DELETE /admin/photos/1
  442 + # GET /admin/posts
  443 + # GET /admin/posts/new
  444 + # POST /admin/posts
  445 + # GET /admin/posts/1
  446 + # GET /admin/posts/1/edit
  447 + # PUT /admin/posts/1
  448 + # DELETE /admin/posts/1
449 449 #
450 450 # If you want to route /posts (without the prefix /admin) to
451 451 # Admin::PostsController, you could use
@@ -473,13 +473,13 @@ def map_method(method, *args, &block)
473 473 # not use scope. In the last case, the following paths map to
474 474 # PostsController:
475 475 #
476   - # GET /admin/photos
477   - # GET /admin/photos/new
478   - # POST /admin/photos
479   - # GET /admin/photos/1
480   - # GET /admin/photos/1/edit
481   - # PUT /admin/photos/1
482   - # DELETE /admin/photos/1
  476 + # GET /admin/posts
  477 + # GET /admin/posts/new
  478 + # POST /admin/posts
  479 + # GET /admin/posts/1
  480 + # GET /admin/posts/1/edit
  481 + # PUT /admin/posts/1
  482 + # DELETE /admin/posts/1
483 483 module Scoping
484 484 def initialize(*args) #:nodoc:
485 485 @scope = {}

0 comments on commit 04af510

Please sign in to comment.
Something went wrong with that request. Please try again.