# in routes.rb map.connect 'articles/:year/:month/:day', :controller => 'articles', :month => nil, :day => nil, :requirements => { :year => /\d{4}/ }