Skip to content

Instantly share code, notes, and snippets.

@DocSavage
Created July 21, 2008 22:43
Show Gist options
  • Save DocSavage/398 to your computer and use it in GitHub Desktop.
Save DocSavage/398 to your computer and use it in GitHub Desktop.
ActionController::Routing::Routes.draw do |map|
map.connect ' daily/:year/:month' ,
:controller => ' teetimes' ,
:action => ' index' ,
:month => Time.now.month,
:year => Time.now.year,
:requirements => {
:year => /\d+/,
:month => /\d+/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment