ActionController::Routing::Routes.draw do |map| map.home '', :controller => 'posts' map.post ':token', :controller => 'posts', :action => 'show', :conditions => { :token => /^[\da-f]{12}$/ } map.tag 'tag/:tag', :controller => 'posts' map.feed 'feed.xml', :controller => 'posts', :action => 'feed' map.connect '/sekret/:controller/:action/:id' end