Skip to content

Commit

Permalink
Updating routing namespace examples to use symbols and not strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hates committed Oct 19, 2010
1 parent 2c3c0bc commit e43de58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/guides/source/routing.textile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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: 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> <ruby>
namespace "admin" do namespace :admin do
resources :posts, :comments resources :posts, :comments
end end
</ruby> </ruby>
Expand Down Expand Up @@ -478,7 +478,7 @@ match "photos", :constraints => {:subdomain => "admin"}
You can also specify constrains in a block form: You can also specify constrains in a block form:


<ruby> <ruby>
namespace "admin" do namespace :admin do
constraints :subdomain => "admin" do constraints :subdomain => "admin" do
resources :photos resources :photos
end end
Expand Down

0 comments on commit e43de58

Please sign in to comment.