Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 950

Show
Ignore:
Timestamp:
03/20/05 23:39:07 (4 years ago)
Author:
david
Message:

Added note about routing the site root

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/configs/routes.rb

    r710 r950  
    77  # Keep in mind you can assign values other than :controller and :action 
    88 
     9  # You can have the root of your site routed by hooking up ''  
     10  # -- just remember to delete public/index.html. 
     11  # map.connect '', :controller => "welcome" 
     12 
    913  # Allow downloading Web Service WSDL as a file with an extension 
    1014  # instead of a file named 'wsdl' 
    1115  map.connect ':controller/service.wsdl', :action => 'wsdl' 
    12    
     16 
    1317  # Install the default route as the lowest priority. 
    1418  map.connect ':controller/:action/:id'