aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Hart <richard@ur-ban.com>2010-10-19 13:40:47 +0100
committerRichard Hart <richard@ur-ban.com>2010-10-19 13:40:47 +0100
commite43de58ab449218ab2d56e30e54e429aadcb8a1b (patch)
treebe7979cf15a8738d51551917e5720f3914df1222
parent2c3c0bcbabb4d725526210701eb91f8087e03a4b (diff)
downloadrails-e43de58ab449218ab2d56e30e54e429aadcb8a1b.tar.gz
rails-e43de58ab449218ab2d56e30e54e429aadcb8a1b.tar.bz2
rails-e43de58ab449218ab2d56e30e54e429aadcb8a1b.zip
Updating routing namespace examples to use symbols and not strings.
-rw-r--r--railties/guides/source/routing.textile4
1 files changed, 2 insertions, 2 deletions
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:
<ruby>
-namespace "admin" do
+namespace :admin do
resources :posts, :comments
end
</ruby>
@@ -478,7 +478,7 @@ match "photos", :constraints => {:subdomain => "admin"}
You can also specify constrains in a block form:
<ruby>
-namespace "admin" do
+namespace :admin do
constraints :subdomain => "admin" do
resources :photos
end