Permalink
Browse files

Added note about routing the site root

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@950 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Mar 20, 2005
1 parent d578196 commit 2c918ed9b5fba4802654a4e9792519391fd687d6
Showing with 5 additions and 1 deletion.
  1. +5 −1 railties/configs/routes.rb
@@ -6,10 +6,14 @@
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
+ # You can have the root of your site routed by hooking up ''
+ # -- just remember to delete public/index.html.
+ # map.connect '', :controller => "welcome"
+
# Allow downloading Web Service WSDL as a file with an extension
# instead of a file named 'wsdl'
map.connect ':controller/service.wsdl', :action => 'wsdl'
-
+
# Install the default route as the lowest priority.
map.connect ':controller/:action/:id'
end

0 comments on commit 2c918ed

Please sign in to comment.