From e43de58ab449218ab2d56e30e54e429aadcb8a1b Mon Sep 17 00:00:00 2001 From: Richard Hart Date: Tue, 19 Oct 2010 13:40:47 +0100 Subject: Updating routing namespace examples to use symbols and not strings. --- railties/guides/source/routing.textile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties') diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile index a8a8ee58ec..f48ae9c7f7 100644 --- a/railties/guides/source/routing.textile +++ b/railties/guides/source/routing.textile @@ -153,7 +153,7 @@ h4. Controller Namespaces and Routing You may wish to organize groups of controllers under a namespace. Most commonly, you might group a number of administrative controllers under an +Admin::+ namespace. You would place these controllers under the +app/controllers/admin+ directory, and you can group them together in your router: -namespace "admin" do +namespace :admin do resources :posts, :comments end @@ -478,7 +478,7 @@ match "photos", :constraints => {:subdomain => "admin"} You can also specify constrains in a block form: -namespace "admin" do +namespace :admin do constraints :subdomain => "admin" do resources :photos end -- cgit v1.2.3