mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix where the documentation says "photos", but the example shows "posts" or "comments" by switching both to simply "posts"
This commit is contained in:
parent
203e45cd7f
commit
433e1aca86
1 changed files with 4 additions and 4 deletions
|
@ -426,22 +426,22 @@ module ActionDispatch
|
||||||
# PUT /admin/photos/1
|
# PUT /admin/photos/1
|
||||||
# DELETE /admin/photos/1
|
# DELETE /admin/photos/1
|
||||||
#
|
#
|
||||||
# If you want to route /photos (without the prefix /admin) to
|
# If you want to route /posts (without the prefix /admin) to
|
||||||
# Admin::PostsController, you could use
|
# Admin::PostsController, you could use
|
||||||
#
|
#
|
||||||
# scope :module => "admin" do
|
# scope :module => "admin" do
|
||||||
# resources :posts, :comments
|
# resources :posts
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# or, for a single case
|
# or, for a single case
|
||||||
#
|
#
|
||||||
# resources :posts, :module => "admin"
|
# resources :posts, :module => "admin"
|
||||||
#
|
#
|
||||||
# If you want to route /admin/photos to PostsController
|
# If you want to route /admin/posts to PostsController
|
||||||
# (without the Admin:: module prefix), you could use
|
# (without the Admin:: module prefix), you could use
|
||||||
#
|
#
|
||||||
# scope "/admin" do
|
# scope "/admin" do
|
||||||
# resources :posts, :comments
|
# resources :posts
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# or, for a single case
|
# or, for a single case
|
||||||
|
|
Loading…
Reference in a new issue