diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2010-11-07 10:33:06 +1000 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2010-11-07 11:39:50 +1000 |
commit | 433e1aca868b148493421b7d3f554c65f50a14ee (patch) | |
tree | 9396087556a7ee43548bbcaabf29ff08865e9009 /actionpack | |
parent | 203e45cd7fcbcb2ca548f778482c3ad0ad82d691 (diff) | |
download | rails-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"
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 8 |
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 |