Browse files

Updating routing namespace examples to use symbols and not strings.

  • Loading branch information...
1 parent 2c3c0bc commit e43de58ab449218ab2d56e30e54e429aadcb8a1b @Hates Hates committed Oct 19, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/routing.textile
4 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
@@ -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

0 comments on commit e43de58

Please sign in to comment.