ActionController::Routing::Routes.draw do |map| # Add your own custom routes here. # The priority is based upon order of creation: first created -> highest priority. # Here's a sample route: # 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 => "media", :action => 'list' map.connect '/', :controller => "media", :action => 'list' map.connect 'media/page/:page', :controller => 'media', :action => 'list', :page => /\d+/ map.connect 'media/:year/:month/:day', :controller => 'media',:action => 'find_by_date',:year => /\d{4}/, :day => nil, :month => nil map.connect 'media/:year/:month/:day/:title', :controller => 'media',:action => 'permalink', :year => /\d{4}/ map.connect 'media/category/:cat', :controller => 'media',:action => 'show_category' map.connect 'media/tag/:tag', :controller => 'media',:action => 'show_tag' ##themesupport map.connect "/themes/:theme/images/*filename", :controller=>'theme', :action=>'images' map.connect "/themes/:theme/stylesheets/*filename", :controller=>'theme', :action=>'stylesheets' map.connect "/themes/:theme/javascript/*filename", :controller=>'theme', :action=>'javascript' map.connect "/themes/*whatever", :controller=>'theme', :action=>'error' #sitealizer map.connect '/sitealizer/:action', :controller => 'sitealizer' # 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