Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
map.connect 'archives/:year/:month',
:controller => 'posts',
:action => 'find_by_date',
:year => /\d{4}/,
:month => /(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.