ActionController::Routing::Routes.draw do |map| map.connect "", :controller => 'shelf', :action => "index" map.connect '_doc/index.html', :controller => 'shelf', :action => "index" # map.connect base + 'read/book/:book/', :controller=> "read", :action=>"book" # map.connect base + 'read/book/:book/chapter/:chapter', :controller=> "read", :action=>"chapter" # map.connect base + 'syndicate/:book/chapter/:chapter', :controller=> "read", :action=>"chapter" # make rss feed urls pretty and let them end in .xml # this improves caches_page because now apache and webrick will send out the # cached feeds with the correct xml mime type. map.connect 'syndicate/:action/feed.xml', :controller => 'syndicate' # Install the default route as the lowest priority. map.connect ':controller/:action/:id' #' end