Skip to content

Instantly share code, notes, and snippets.

@benlovell
Created July 24, 2009 10:51
Show Gist options
  • Save benlovell/153976 to your computer and use it in GitHub Desktop.
Save benlovell/153976 to your computer and use it in GitHub Desktop.
map.connect 'orders/:date_from',
:controller => 'orders',
:action => 'index',
:date_from => Time.new
map.connect 'orders/:date_from',
:controller => 'orders',
:action => 'index',
:date_from => lambda {Time.new}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment