aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-11-07 10:33:06 +1000
committerRyan Bigg <radarlistener@gmail.com>2010-11-07 11:39:50 +1000
commit433e1aca868b148493421b7d3f554c65f50a14ee (patch)
tree9396087556a7ee43548bbcaabf29ff08865e9009
parent203e45cd7fcbcb2ca548f778482c3ad0ad82d691 (diff)
downloadrails-433e1aca868b148493421b7d3f554c65f50a14ee.tar.gz
rails-433e1aca868b148493421b7d3f554c65f50a14ee.tar.bz2
rails-433e1aca868b148493421b7d3f554c65f50a14ee.zip
Fix where the documentation says "photos", but the example shows "posts" or "comments" by switching both to simply "posts"
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index c58562db24..9c5fee9914 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -426,22 +426,22 @@ module ActionDispatch
# PUT /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
#
# scope :module => "admin" do
- # resources :posts, :comments
+ # resources :posts
# end
#
# or, for a single case
#
# 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
#
# scope "/admin" do
- # resources :posts, :comments
+ # resources :posts
# end
#
# or, for a single case